OSDN Git Service

dmaengine: tegra210-adma: update system sleep callbacks
authorSameer Pujar <spujar@nvidia.com>
Wed, 13 Mar 2019 11:32:37 +0000 (17:02 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 25 Mar 2019 04:53:55 +0000 (10:23 +0530)
commit74fca241e6a0c0a4c33d84f64708e4f88ee73402
treec6ceda3ce7525253d637e27e00a781dcfd2f0b99
parentf6ed6491d565c336a360471e0c29228e34f4380e
dmaengine: tegra210-adma: update system sleep callbacks

If the driver is active till late suspend, where runtime PM cannot run,
force suspend is essential in such case to put the device in low power
state. Thus pm_runtime_force_suspend and pm_runtime_force_resume are
used as system sleep callbacks during system wide PM transitions.
Late system sleep callbacks are used to ensure, for instance, that the
sound core has suspended any on-going activity, including stopping the
ADMA if active, before we attempt to suspend the ADMA.

Suggested-by: Jonathan Hunter <jonathanh@nvidia.com>
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra210-adma.c