summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTze Yee Ng <tze.yee.ng@altera.com>2026-05-25 10:10:22 +0300
committerVinod Koul <vkoul@kernel.org>2026-06-11 08:28:42 +0300
commitdf0c2dc68770cf43f15df40b184df030b850ea05 (patch)
tree3262cb5a9a9a556a6814000108ab8ec4aefa8682 /scripts
parentdc6d681e1571c89cd38145926fb2513d70a633e1 (diff)
downloadlinux-df0c2dc68770cf43f15df40b184df030b850ea05.tar.xz
dmaengine: dw-axi-dmac: fix PM for system sleep and channel alloc
The driver only had runtime PM callbacks. If a channel stayed allocated across system suspend/resume, the runtime usage count could remain non-zero while hardware state (DMAC_CFG, clocks) was lost, and axi_dma_runtime_resume() would not run to restore it. Add system-sleep PM ops that use pm_runtime_force_suspend() and pm_runtime_force_resume() so suspend/resume reuses the existing axi_dma_suspend() and axi_dma_resume() paths. Replace pm_runtime_get() with pm_runtime_resume_and_get() in dma_chan_alloc_chan_resources() so clocks are enabled before a client can immediately submit a transfer and touch MMIO. Signed-off-by: Tze Yee Ng <tze.yee.ng@altera.com> Link: https://patch.msgid.link/18bf778a3a1cc2f377ef8eb0d1508d8ac6371896.1779688569.git.tze.yee.ng@altera.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions