ASoC: rt5640: Fix Jack work after system suspend
authorOder Chiou <oder_chiou@realtek.com>
Mon, 28 Nov 2022 07:08:25 +0000 (15:08 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 28 Nov 2022 13:04:36 +0000 (13:04 +0000)
commit5fabcc90e79b460d72df582b31854f6018695965
tree636355ec2736b63a072349df8e1635f7ff259bc6
parent11e87890dab52d14af2b2f3945835ec6db473e3b
ASoC: rt5640: Fix Jack work after system suspend

We found an corner case in RT5640 codec driver which schedules jack work
after system suspend as IRQ was enabled. Due to this, hitting the error
as register access happening after suspend as jack worker thread getting
scheduled in irq handler. The patch disables the irq during the suspend
to prevent the corner case happening.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Reported-by: Mohan Kumar D <mkumard@nvidia.com>
Link: https://lore.kernel.org/r/20221128070825.91215-1-oder_chiou@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5640.c