]> git.ipfire.org Git - thirdparty/linux.git/commit
mfd: cs42l43: Disable IRQs during suspend
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 14 Oct 2024 09:52:02 +0000 (10:52 +0100)
committerLee Jones <lee@kernel.org>
Thu, 31 Oct 2024 16:17:09 +0000 (16:17 +0000)
commit2bb0106db90f86c3c513c26bb42ef0798ae8164d
tree40ac489a9e58d306532b37f3a97c48dfc477320d
parenta0f8a8898e120d5a3f14cd22289daa3709d83f5b
mfd: cs42l43: Disable IRQs during suspend

The ASoC CODEC driver masks the IRQs whilst entering and exiting
system suspend to avoid issues where the IRQ handler can run but PM
runtime is disabled. However, as the IRQs could also be used from
other parts of the driver, it would be better to move this handling to
the MFD level.

Remove the handling from the ASoC driver and move it to the MFD
driver. Whilst moving also ensure the IRQs are all masked at the device
level before powering down the device, as per hardware recommendations.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Mark Brown <broonie@kernel.org.>
Link: https://lore.kernel.org/r/20241014095202.828194-1-ckeepax@opensource.cirrus.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/cs42l43.c
sound/soc/codecs/cs42l43.c