Skip to content

Commit 0383734

Browse files
vijendarmukundavinodkoul
authored andcommitted
soundwire: amd: serialize amd manager resume sequence during pm_prepare
During pm_prepare callback, pm_request_resume() delays SoundWire manager D0 entry sequence. Synchronize runtime resume sequence for amd_manager instance prior to invoking child devices resume sequence for both the amd power modes(ClockStop Mode and Power off mode). Change the power_mode_mask check and use pm_runtime_resume() in amd_pm_prepare() callback. Signed-off-by: Vijendar Mukunda <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 5b8c1f3 commit 0383734

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/soundwire/amd_manager.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,10 +1178,10 @@ static int __maybe_unused amd_pm_prepare(struct device *dev)
11781178
* device is not in runtime suspend state, observed that device alerts are missing
11791179
* without pm_prepare on AMD platforms in clockstop mode0.
11801180
*/
1181-
if (amd_manager->power_mode_mask & AMD_SDW_CLK_STOP_MODE) {
1182-
ret = pm_request_resume(dev);
1181+
if (amd_manager->power_mode_mask) {
1182+
ret = pm_runtime_resume(dev);
11831183
if (ret < 0) {
1184-
dev_err(bus->dev, "pm_request_resume failed: %d\n", ret);
1184+
dev_err(bus->dev, "pm_runtime_resume failed: %d\n", ret);
11851185
return 0;
11861186
}
11871187
}

0 commit comments

Comments
 (0)