]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: amd: ps: fix for soundwire failures during hibernation exit sequence
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 23 Jun 2025 08:44:55 +0000 (14:14 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 23 Jun 2025 13:20:29 +0000 (14:20 +0100)
commitdc6458ed95e40146699f9c523e34cb13ff127170
treede51f99be271bff390cf5b602c97acec6e39d27d
parentbf39286adc5e10ce3e32eb86ad316ae56f3b52a0
ASoC: amd: ps: fix for soundwire failures during hibernation exit sequence

During the hibernate entry sequence, ACP registers will be reset to
default values and acp ip will be completely powered off including acp
SoundWire pads. During resume sequence, if acp SoundWire pad keeper enable
register is not restored along with pad pulldown control register value,
then SoundWire manager links won't be powered on correctly results in
peripheral register access failures and completely audio function is
broken.

Add code to store the acp SoundWire pad keeper enable register and acp pad
pulldown ctrl register values before entering into suspend state and
restore the register values during resume sequence based on condition check
for acp SoundWire pad keeper enable register for ACP6.3, ACP7.0 & ACP7.1
platforms.

Fixes: 491628388005 ("ASoC: amd: ps: add callback functions for acp pci driver pm ops")
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://patch.msgid.link/20250623084630.3100279-1-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/ps/acp63.h
sound/soc/amd/ps/ps-common.c