]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
bus: tegra-aconnect: add system sleep callbacks
authorSameer Pujar <spujar@nvidia.com>
Wed, 13 Mar 2019 04:41:59 +0000 (10:11 +0530)
committerThierry Reding <treding@nvidia.com>
Thu, 28 Mar 2019 16:26:14 +0000 (17:26 +0100)
pm_runtime_force_suspend() and pm_runtime_force_resume() are used as system
sleep noirq suspend and resume callbacks. If the driver is active till late
suspend, where runtime PM cannot run, force suspend is essential for the
device. This makes sure that the device is put into low power state during
system wide PM transitions to sleep states.

Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/bus/tegra-aconnect.c

index 9349157b3a5baaffda299c1ab3d458f9244076f3..ac58142301f49d9bd0b0e088343510fbccc6e37e 100644 (file)
@@ -94,6 +94,8 @@ static int tegra_aconnect_runtime_suspend(struct device *dev)
 static const struct dev_pm_ops tegra_aconnect_pm_ops = {
        SET_RUNTIME_PM_OPS(tegra_aconnect_runtime_suspend,
                           tegra_aconnect_runtime_resume, NULL)
+       SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
+                                     pm_runtime_force_resume)
 };
 
 static const struct of_device_id tegra_aconnect_of_match[] = {