Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bus: tegra-aconnect: add system sleep callbacks

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>

authored by

Sameer Pujar and committed by
Thierry Reding
1427736e 0d7dab92

+2
+2
drivers/bus/tegra-aconnect.c
··· 94 94 static const struct dev_pm_ops tegra_aconnect_pm_ops = { 95 95 SET_RUNTIME_PM_OPS(tegra_aconnect_runtime_suspend, 96 96 tegra_aconnect_runtime_resume, NULL) 97 + SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, 98 + pm_runtime_force_resume) 97 99 }; 98 100 99 101 static const struct of_device_id tegra_aconnect_of_match[] = {