linux/sound/soc/mediatek
Fei Shao 6c9e9046e1
ASoC: mediatek: mt8186: Fix mutex double unlock in GPIO request
The lockdep mechanism revealed an unbalanced unlocking on MT8186:

  [    2.993966] WARNING: bad unlock balance detected!
  [    2.993978] -------------------------------------
  [    2.993983] kworker/u16:1/10 is trying to release lock (gpio_request_mutex) at:
  [    2.993994] [<ffffffdcd9adebf8>] mt8186_afe_gpio_request+0xf8/0x210
  [    2.994012] but there are no more locks to release!

The cause is that the mutex will be double unlocked if dai is unknown
during GPIO selection, and this patch fixes it.

Fixes: cfa9a966f1 ("ASoC: mediatek: mt8186: support gpio control in platform driver")

Signed-off-by: Fei Shao <fshao@chromium.org>
Link: https://lore.kernel.org/r/20220617111003.2014395-1-fshao@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-06-17 18:25:24 +01:00
..
common ASoC: mediatek: remove unnecessary initialization 2021-10-27 11:31:12 +01:00
mt2701 ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe 2022-04-05 10:44:31 +01:00
mt6797 ASoC: mt6797-mt6351: Fix refcount leak in mt6797_mt6351_dev_probe 2022-06-06 12:38:49 +01:00
mt8173 ASoC: mediatek: mt8173-rt5650: Fix refcount leak in mt8173_rt5650_dev_probe 2022-06-07 12:00:44 +01:00
mt8183 ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
mt8186 ASoC: mediatek: mt8186: Fix mutex double unlock in GPIO request 2022-06-17 18:25:24 +01:00
mt8192 ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
mt8195 Specify clock provider directly to CPU DAIs 2022-06-09 11:56:32 +01:00
Kconfig ASoC: mediatek: mt8192: support rt1015p_rt5682s 2022-04-08 12:09:51 +01:00
Makefile ASoC: mediatek: mt8195: add platform driver 2021-08-24 19:13:56 +01:00