]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
dmaengine: cppi41: Add basic PM runtime support
authorTony Lindgren <tony@atomide.com>
Wed, 31 Aug 2016 14:19:59 +0000 (07:19 -0700)
committerVinod Koul <vinod.koul@intel.com>
Wed, 31 Aug 2016 15:54:24 +0000 (21:24 +0530)
commitfdea2d09b997ba4c86e7a707a5fac87c305f2131
tree075fe321dd943fda32aa0229f2312d8e243bbc84
parent670fc2a87013c3733868094c3ea115250398f2ea
dmaengine: cppi41: Add basic PM runtime support

Let's keep the device enabled between cppi41_dma_issue_pending()
and dmaengine_desc_get_callback_invoke() and rely on the PM runtime
autoidle timeout elsewhere.

As the PM runtime is for whole device, not for each channel,
we need to queue pending transfers if the device is PM runtime
suspended. Then we start the pending transfers in PM runtime
resume.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/cppi41.c