]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: apple-admac: Avoid accessing registers in probe
authorSasha Finkelstein <fnkl.kernel@gmail.com>
Sun, 24 Nov 2024 15:48:28 +0000 (16:48 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 4 Dec 2024 12:12:27 +0000 (17:42 +0530)
commit8d55e8a16f019211163f1180fd9f9fbe05901900
tree05288b0d0caab9ada7d74560fe8933429254ed63
parent790fb9956eead785b720ccc0851f09a5ca3a093e
dmaengine: apple-admac: Avoid accessing registers in probe

The ADMAC attached to the AOP has complex power sequencing, and is
power gated when the probe callback runs. Move the register reads
to other functions, where we can guarantee that the hardware is
switched on.

Fixes: 568aa6dd641f ("dmaengine: apple-admac: Allocate cache SRAM to channels")
Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
Link: https://lore.kernel.org/r/20241124-admac-power-v1-1-58f2165a4d55@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/apple-admac.c