dmaengine: at_xdmac: add runtime pm support
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 17 Nov 2022 13:15:45 +0000 (15:15 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 18 Jan 2023 16:44:22 +0000 (22:14 +0530)
commit650b0e990cbd7e214251a173460f79f3681e8233
treea439d76022ab9011a5e594c06c995968602c296f
parent610b573e5169336e99092dbf7071fdf08222c3f1
dmaengine: at_xdmac: add runtime pm support

Add runtime PM support which involves disabling/enabling controller's
clocks on runtime PM suspend/resume ops. The runtime suspend/resume is
done based on the work submitted to the controller: runtime resume is
happening on at_xdmac_start_xfer() and runtime suspend on
at_xdmac_tasklet().

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20221117131547.293044-2-claudiu.beznea@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_xdmac.c