[PATCH 00/10] ASoC: mediatek: Use guard() for mutex & spin locks
phucduc.bui at gmail.com
phucduc.bui at gmail.com
Wed Jun 10 03:20:11 PDT 2026
From: bui duc phuc <phucduc.bui at gmail.com>
Hi all,
This series converts mutex and spinlock handling in Mediatek ASoC drivers
to use guard() helpers.
Most patches are straightforward conversions to guard() helpers with no
functional change intended.
One exception is mt8192-afe-gpio, where the mutex release point moves from
immediately before dev_warn() to scope exit. However, the affected path
only emits a warning and immediately returns -EINVAL, without any further
processing.
Compile-tested only.
Best regards,
Phuc
bui duc phuc (10):
ASoC: mediatek: common: mtk-afe-fe-dai: Use guard() for mutex locks
ASoC: mediatek: common: mtk-btcvsd: Use guard() for spin locks
ASoC: mediatek: mt8186: mt8186-afe-gpio: Use guard() for mutex locks
ASoC: mediatek: mt8188: mt8188-afe-clk: Use guard() for spin locks
ASoC: mediatek: mt8192: mt8192-afe-gpio: Use guard() for mutex locks
ASoC: mediatek: mt8195: mt8195-afe-clk: Use guard() for spin locks
ASoC: mediatek: mt8195: mt8195-dai-etdm: Use guard() for spin locks
ASoC: mediatek: mt8195: mt8365-afe-clk: Use guard() for mutex & spin
locks
ASoC: mediatek: mt8195: mt8365-dai-adda: Use guard() for spin locks
ASoC: mediatek: mt8195: mt8365-dai-i2s: Use guard() for spin locks
sound/soc/mediatek/common/mtk-afe-fe-dai.c | 8 +-
sound/soc/mediatek/common/mtk-btcvsd.c | 81 +++++++++------------
sound/soc/mediatek/mt8186/mt8186-afe-gpio.c | 13 +---
sound/soc/mediatek/mt8188/mt8188-afe-clk.c | 29 +++-----
sound/soc/mediatek/mt8192/mt8192-afe-gpio.c | 4 +-
sound/soc/mediatek/mt8195/mt8195-afe-clk.c | 42 +++++------
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c | 16 ++--
sound/soc/mediatek/mt8365/mt8365-afe-clk.c | 30 ++------
sound/soc/mediatek/mt8365/mt8365-dai-adda.c | 10 +--
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c | 5 +-
10 files changed, 87 insertions(+), 151 deletions(-)
--
2.43.0
More information about the linux-arm-kernel
mailing list