dma: shdma: transfer based runtime PM

Currently the shdma dmaengine driver uses runtime PM to save power, when
no channel on the specific controller is requested by a user. This patch
switches the driver to count individual DMA transfers. That way the
controller can be powered down between transfers, even if some of its
channels are in use.

Signed-off-by: Guennadi Liakhovetski <>
Signed-off-by: Vinod Koul <>
(cherry picked from commit 7a1cd9ad87979744e1510782b25c38feb9602739)

Signed-off-by: Simon Horman <>
2 files changed