dmaengine: tegra-apb: Really fix runtime-pm usage
authorJon Hunter <jonathanh@nvidia.com>
Tue, 6 Jun 2017 12:49:29 +0000 (13:49 +0100)
committerVinod Koul <vinod.koul@intel.com>
Fri, 30 Jun 2017 05:43:44 +0000 (11:13 +0530)
commit65a5c3dd3e11225a0d0e0df97d23fa64ab2d4ed2
tree73aeba4d3b819765f5a917eb8ff836b915a141fe
parent5f54d3e869812ef288c63dff67848a7520979953
dmaengine: tegra-apb: Really fix runtime-pm usage

Commit edd3bdbe9db1 ("dmaengine: tegra-apb: Correct runtime-pm usage")
added pm_runtime_get/put() calls to the tegra-apb DMA system suspend
callbacks. Runtime PM is disabled during system suspend and so these
APIs cannot be used. Fix the suspend handling for the tegra-apb DMA by
moving the save and restore of the DMA register context into the
runtime PM suspend and resume callbacks, and then use the
pm_runtime_force_suspend/resume() APIs to invoke the runtime PM
callbacks during system suspend.

Fixes: edd3bdbe9db1 ("dmaengine: tegra-apb: Correct runtime-pm usage")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/tegra20-apb-dma.c