ASoC: mediatek: Use guard() for mutex & spin locks
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 1 replyIn review
Patches in v1 No applies recorded yet
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/10] ASoC: mediatek: Use guard() for mutex & spin locks
From: bui duc phuc <[email protected]>
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(-)
Signature · 1 line
2.43.0