]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soundwire: amd: fix for wake interrupt handling for clockstop mode
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Wed, 27 Mar 2024 06:31:43 +0000 (12:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2024 14:32:47 +0000 (16:32 +0200)
commit935d4c7cdc56a1818fc7d2ead1af6baa7a83ab0e
tree80c7b1a8dcdd92c59ed13cc2cda896745d30e019
parent4b80c0260bdef40894d9efd75ed08f393fd39a0f
soundwire: amd: fix for wake interrupt handling for clockstop mode

[ Upstream commit 63dc588e7af1392576071a1841298198c9cddee3 ]

When SoundWire Wake interrupt is enabled along with SoundWire Wake
enable register, SoundWire wake interrupt will be reported
when SoundWire manager is in D3 state and ACP is in D3 state.

When SoundWire Wake interrupt is reported, it will invoke runtime
resume of the SoundWire manager device.

In case of system level suspend, for ClockStop Mode SoundWire Wake
interrupt should be disabled.
It should be enabled only for runtime suspend scenario.
Change wake interrupt enable/disable sequence for ClockStop Mode in
system level suspend and runtime suspend sceanrio.

Fixes: 9cf1efc5ed2d ("soundwire: amd: add pm_prepare callback and pm ops support")
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20240327063143.2266464-2-Vijendar.Mukunda@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soundwire/amd_manager.c
drivers/soundwire/amd_manager.h