Re: [PATCH v3 1/7] ASoC: SOF: imx: introduce more common structures and functions
From: Markus Elfring
Date: Fri Feb 07 2025 - 11:36:13 EST
…
> +++ b/sound/soc/sof/imx/imx-common.c
> @@ -1,11 +1,16 @@
…
> +static void imx_handle_reply(struct imx_dsp_ipc *ipc)
> +{
…
> + spin_lock_irqsave(&sdev->ipc_lock, flags);
> + snd_sof_ipc_process_reply(sdev, 0);
> + spin_unlock_irqrestore(&sdev->ipc_lock, flags);
> +}
…
Under which circumstances would you become interested to apply a statement
like “guard(spinlock_irqsave)(&sdev->ipc_lock);”?
https://elixir.bootlin.com/linux/v6.13.1/source/include/linux/spinlock.h#L572
Regards,
Markus