soundwire: amd: serialize amd manager resume sequence during pm_prepare
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Fri, 30 May 2025 05:43:40 +0000 (11:13 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 9 Jun 2025 16:08:28 +0000 (21:38 +0530)
commit03837341790039d6f1cbf7a1ae7dfa2cb77ef0a4
treec320324b246df06c641dfa39e6d62f60e099493a
parent5b8c1f39b5e46505cf9cf7775759a9e9c2bfc2d9
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 <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20250530054447.1645807-3-Vijendar.Mukunda@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/amd_manager.c