Commit a21a1dec authored by Charles Keepax's avatar Charles Keepax Committed by Matt Davis
Browse files

FROMGIT: 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.

(cherry picked from commit 3fe0ab71cede10b89cb4a3337bb245fdf47e740c https://github.com/CirrusLogic/linux-drivers

 v6.12-cs42l43-cs35l56)
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: default avatarMark Brown <broonie@kernel.org.>
Link: https://lore.kernel.org/r/20241014095202.828194-1-ckeepax@opensource.cirrus.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>

Change-Id: Iac20379db78312d9b20e91a8f9ec6a1348c54a09
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarTongtong Pan <pantongtong@huaqin.corp-partner.google.com>
parent 0f3d9182
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment