The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/4] ASoC: stm: Use guard() for mutex & spin locks
@ 2026-05-15 11:24 phucduc.bui
  2026-05-15 11:24 ` [PATCH v2 1/4] ASoC: stm: stm32_adfsdm: Use guard() for mutex locks phucduc.bui
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: phucduc.bui @ 2026-05-15 11:24 UTC (permalink / raw)
  To: olivier.moysan, arnaud.pouliquen, broonie
  Cc: lgirdwood, perex, tiwai, mcoquelin.stm32, alexandre.torgue,
	linux-sound, linux-stm32, linux-arm-kernel, linux-kernel,
	bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Hi all,

This series converts mutex and spinlock handling in the STM drivers
to use guard() helpers.
The changes are code cleanup only and should have no functional impact.

Best regards,
Phuc

Changes in v2:

 Replace break statements inside scoped_guard() blocks with return 0
 in stm32_i2s trigger handling, since break only exits the implicit
 scoped_guard loop rather than the function switch block.

bui duc phuc (4):
  ASoC: stm: stm32_adfsdm: Use guard() for mutex locks
  ASoC: stm: stm32_i2s: Use guard() for spin locks
  ASoC: stm: stm32_sai_sub: Use guard() for mutex & spin locks
  ASoC: stm: stm32_spdifrx: Use guard() for spin locks

 sound/soc/stm/stm32_adfsdm.c  | 10 ++----
 sound/soc/stm/stm32_i2s.c     | 67 ++++++++++++++++-------------------
 sound/soc/stm/stm32_sai_sub.c | 29 ++++++---------
 sound/soc/stm/stm32_spdifrx.c | 44 +++++++++--------------
 4 files changed, 60 insertions(+), 90 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-15 11:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-15 11:24 [PATCH v2 0/4] ASoC: stm: Use guard() for mutex & spin locks phucduc.bui
2026-05-15 11:24 ` [PATCH v2 1/4] ASoC: stm: stm32_adfsdm: Use guard() for mutex locks phucduc.bui
2026-05-15 11:24 ` [PATCH v2 2/4] ASoC: stm: stm32_i2s: Use guard() for spin locks phucduc.bui
2026-05-15 11:24 ` [PATCH v2 3/4] ASoC: stm: stm32_sai_sub: Use guard() for mutex & " phucduc.bui
2026-05-15 11:24 ` [PATCH v2 4/4] ASoC: stm: stm32_spdifrx: Use guard() for " phucduc.bui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox