Skip to content

ASoC: ti: Cleanup locking code using guard() helpers

[email protected] linux-omap linux-sound lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ASoC: ti: j721e-evm: Use guard() for mutex lockssound/soc/ti/j721e-evm.c+9 -160 replies
2/7ASoC: ti: omap-dmic: Use guard() for mutex lockssound/soc/ti/omap-dmic.c+18 -260 replies
3/7ASoC: ti: omap-hdmi: Use guard() for mutex lockssound/soc/ti/omap-hdmi.c+7 -110 replies
4/7ASoC: ti: omap-mcpdm: Use guard() for mutex lockssound/soc/ti/omap-mcpdm.c+2 -60 replies
5/7ASoC: ti: ams-delta: Use guard() for spin lockssound/soc/ti/ams-delta.c+13 -130 replies
6/7ASoC: ti: omap-mcbsp-st: Use guard() for spin lockssound/soc/ti/omap-mcbsp-st.c+8 -181 reply
7/7ASoC: ti: omap-mcbsp: Simplify lock and resource handlingsound/soc/ti/omap-mcbsp.c+24 -305 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJarkko Nikula
SeriesA-b
1/7
2/7
3/7
4/7
5/7
6/7T-b
7/7

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

Read the v1 thread

Cover letter [PATCH 0/7] ASoC: ti: Cleanup locking code using guard() helpers

From: bui duc phuc <[email protected]>

Hi all,

This series converts mutex and spinlock handling in TI ASoC drivers to use guard() helpers.

Most patches are straightforward conversions to guard() helpers. Two patches include minor cleanup changes in the process:

omap-dmic: Simplified omap_dmic_dai_startup() by removing the temporary return variable and using a direct return path on error.

omap-mcbsp: Modernized omap_mcbsp_request() by using __free(kfree) for memory management. This ensures that memory is always freed on error paths after the spinlock is released, without needing manual goto labels.

No behavior change intended.

Best regards,
Phuc

bui duc phuc (7):
ASoC: ti: j721e-evm: Use guard() for mutex locks
ASoC: ti: omap-dmic: Use guard() for mutex locks
ASoC: ti: omap-hdmi: Use guard() for mutex locks
ASoC: ti: omap-mcpdm: Use guard() for mutex locks
ASoC: ti: ams-delta: Use guard() for spin locks
ASoC: ti: omap-mcbsp-st: Use guard() for spin locks
ASoC: ti: omap-mcbsp: Simplify lock and resource handling

 sound/soc/ti/ams-delta.c     | 26 ++++++++---------
 sound/soc/ti/j721e-evm.c     | 25 ++++++-----------
 sound/soc/ti/omap-dmic.c     | 44 ++++++++++++-----------------
 sound/soc/ti/omap-hdmi.c     | 18 +++++-------
 sound/soc/ti/omap-mcbsp-st.c | 26 ++++++-----------
 sound/soc/ti/omap-mcbsp.c    | 54 ++++++++++++++++--------------------
 sound/soc/ti/omap-mcpdm.c    |  8 ++----
 7 files changed, 81 insertions(+), 120 deletions(-)
Signature · 1 line
2.43.0