Skip to content

ASoC: fsl: Use guard() for mutex & spin locks

[email protected] imx linux-arm-kernel linux-sound linuxppc-dev lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 13 repliesIn review
  2. v111 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- mpc5200_psc_ac97: Fix scoped_guard() usage by replacing scoped_guard(mutex_lock, ...) with scoped_guard(mutex, ...).
- Added compile testing for mpc5200_dma and mpc5200_psc_ac97, which were not compile-tested in v1.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11ASoC: fsl_asrc: Use guard() for spin lockssound/soc/fsl/fsl_asrc.c+2 -82 replies
2/11ASoC: fsl_audmix: Use guard() for spin lockssound/soc/fsl/fsl_audmix.c+4 -71 reply
3/11ASoC: fsl_easrc: Use guard() for spin lockssound/soc/fsl/fsl_easrc.c+10 -261 reply
4/11ASoC: fsl_esai: Use guard() for spin lockssound/soc/fsl/fsl_esai.c+5 -111 reply
5/11ASoC: fsl_spdif: Use guard() for spin lockssound/soc/fsl/fsl_spdif.c+2 -61 reply
6/11ASoC: fsl_ssi: Use guard() for mutex lockssound/soc/fsl/fsl_ssi.c+4 -91 reply
7/11ASoC: fsl_xcvr: Use guard() for spin lockssound/soc/fsl/fsl_xcvr.c+12 -171 reply
8/11ASoC: imx-audio-rpmsg: Use guard() for spin lockssound/soc/fsl/imx-audio-rpmsg.c+12 -131 reply
9/11ASoC: fsl_rpmsg: Use guard() for mutex & spin lockssound/soc/fsl/imx-pcm-rpmsg.c+30 -391 reply
10/11ASoC: fsl: mpc5200_dma: Use guard() for spin lockssound/soc/fsl/mpc5200_dma.c+28 -281 reply
11/11ASoC: fsl: mpc5200_psc_ac97: Use guard() for mutex lockssound/soc/fsl/mpc5200_psc_ac97.c+12 -221 reply

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchFrank Li
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b
11/11R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/11] ASoC: fsl: Use guard() for mutex & spin locks

From: bui duc phuc <[email protected]>

Hi all,

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

Compile tested only.

Changes in v2:
- mpc5200_psc_ac97: Fix scoped_guard() usage by replacing scoped_guard(mutex_lock, ...) with scoped_guard(mutex, ...).
- Added compile testing for mpc5200_dma and mpc5200_psc_ac97, which were not compile-tested in v1.

Best regards,
Phuc

bui duc phuc (11):
ASoC: fsl_asrc: Use guard() for spin locks
ASoC: fsl_audmix: Use guard() for spin locks
ASoC: fsl_easrc: Use guard() for spin locks
ASoC: fsl_esai: Use guard() for spin locks
ASoC: fsl_spdif: Use guard() for spin locks
ASoC: fsl_ssi: Use guard() for mutex locks
ASoC: fsl_xcvr: Use guard() for spin locks
ASoC: imx-audio-rpmsg: Use guard() for spin locks
ASoC: fsl_rpmsg: Use guard() for mutex & spin locks
ASoC: fsl: mpc5200_dma: Use guard() for spin locks
ASoC: fsl: mpc5200_psc_ac97: Use guard() for mutex locks

 sound/soc/fsl/fsl_asrc.c         | 10 +----
 sound/soc/fsl/fsl_audmix.c       | 11 ++---
 sound/soc/fsl/fsl_easrc.c        | 36 +++++------------
 sound/soc/fsl/fsl_esai.c         | 16 +++-----
 sound/soc/fsl/fsl_spdif.c        |  8 +---
 sound/soc/fsl/fsl_ssi.c          | 13 ++----
 sound/soc/fsl/fsl_xcvr.c         | 29 ++++++--------
 sound/soc/fsl/imx-audio-rpmsg.c  | 25 ++++++------
 sound/soc/fsl/imx-pcm-rpmsg.c    | 69 ++++++++++++++------------------
 sound/soc/fsl/mpc5200_dma.c      | 56 +++++++++++++-------------
 sound/soc/fsl/mpc5200_psc_ac97.c | 34 ++++++----------
 11 files changed, 121 insertions(+), 186 deletions(-)
Signature · 1 line
2.43.0