mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
2c39ffad8a9cfcd9eb7863120e539eecce6899bd
Late system sleep callbacks just invoke runtime PM calls if the device is not in the desired state. There is no need to have separate APIs for this, instead it can directly rely on pm_runtime_force_suspend/resume() APIs to achieve similar behavior. Another reason for this patch is, currently ACONNECT driver is using pm_runtime_force_*() to indirectly invoke runtime PM callbacks. Runtime suspend of ACONNECT fails complaining that there is an active child. Though all XBAR devices are runtime suspended, the runtime PM state of the corresponding device does not reflect it. Hence there is an error in __pm_runtime_set_status() for ACONNECT. This is seen when the audio playback is active and system tries to enter suspend. On system resume, audio fails to resume playback and kernel panic is seen. Hence current patch moves to pm_runtime_force_*() calls for system sleep for all XBAR devices. Bug 200509219 Bug 200503387 Change-Id: I5d531b0aa1a347686f7cca21fc40fe926b34f3a5 Signed-off-by: Sameer Pujar <spujar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2093331 Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Mohan Kumar D <mkumard@nvidia.com> Reviewed-by: Sharad Gupta <sharadg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Description
No description provided