]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5682: Disable irq on shutdown
authorStephen Boyd <swboyd@chromium.org>
Sat, 8 May 2021 07:51:50 +0000 (00:51 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 10 May 2021 16:06:06 +0000 (17:06 +0100)
commit50f2c462f290172a35e75fdd5b57674bc2fbb128
treeeba7b203b3ba86e6e927690aac1cbc9e16a6386d
parentbb77acf4d314b0a654cf20387bb286221b63d55e
ASoC: rt5682: Disable irq on shutdown

We cancel the work queues, and reset the device on shutdown, but the irq
isn't disabled so the work queues could be queued again. Let's disable
the irq during shutdown so that we don't have to worry about this device
trying to do anything anymore. This fixes a problem seen where the i2c
bus is shutdown at reboot but this device irq still comes in and tries
to make another i2c transaction when the bus doesn't work.

Cc: Jairaj Arava <jairaj.arava@intel.com>
Cc: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
Cc: Shuming Fan <shumingf@realtek.com>
Cc: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Fixes: f95f3aa0cee3 ("ASoC: rt5682: Fix panic in rt5682_jack_detect_handler happening during system shutdown")
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20210508075151.1626903-1-swboyd@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682-i2c.c