soundwire: amd: change the soundwire wake enable/disable sequence
[ Upstream commit dcc48a73eae7f791b1a6856ea1bcc4079282c88d ] During runtime suspend scenario, SoundWire wake should be enabled and during system level suspend scenario SoundWire wake should be disabled. Implement the SoundWire wake enable/disable sequence as per design flow for SoundWire poweroff mode. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://lore.kernel.org/r/20250207065841.4718-2-Vijendar.Mukunda@amd.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6a7b7e98fe
commit
929cda8e4b
@@ -1138,6 +1138,7 @@ static int __maybe_unused amd_suspend(struct device *dev)
|
||||
amd_sdw_wake_enable(amd_manager, false);
|
||||
return amd_sdw_clock_stop(amd_manager);
|
||||
} else if (amd_manager->power_mode_mask & AMD_SDW_POWER_OFF_MODE) {
|
||||
amd_sdw_wake_enable(amd_manager, false);
|
||||
/*
|
||||
* As per hardware programming sequence on AMD platforms,
|
||||
* clock stop should be invoked first before powering-off
|
||||
@@ -1165,6 +1166,7 @@ static int __maybe_unused amd_suspend_runtime(struct device *dev)
|
||||
amd_sdw_wake_enable(amd_manager, true);
|
||||
return amd_sdw_clock_stop(amd_manager);
|
||||
} else if (amd_manager->power_mode_mask & AMD_SDW_POWER_OFF_MODE) {
|
||||
amd_sdw_wake_enable(amd_manager, true);
|
||||
ret = amd_sdw_clock_stop(amd_manager);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user