[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YuKF4l68sLKkjcmQ@sirena.org.uk>
Date: Thu, 28 Jul 2022 13:49:38 +0100
From: Mark Brown <broonie@...nel.org>
To: Venkata Prasad Potturu <venkataprasad.potturu@....com>
Cc: alsa-devel@...a-project.org, vsujithkumar.reddy@....com,
Vijendar.Mukunda@....com, Basavaraj.Hiregoudar@....com,
Sunil-kumar.Dommati@....com, ssabakar@....com,
Ajit Kumar Pandey <AjitKumar.Pandey@....com>,
Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Yang Yingliang <yangyingliang@...wei.com>,
Nathan Chancellor <nathan@...nel.org>,
Charles Keepax <ckeepax@...nsource.cirrus.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3] ASoC: amd: acp: Initialize list to store acp_stream
during pcm_open
On Thu, Jul 28, 2022 at 06:10:50PM +0530, Venkata Prasad Potturu wrote:
> @@ -104,14 +105,13 @@ static irqreturn_t i2s_irq_handler(int irq, void *data)
>
> ext_intr_stat = readl(ACP_EXTERNAL_INTR_STAT(adata, rsrc->irqp_used));
>
> - for (i = 0; i < ACP_MAX_STREAM; i++) {
> - stream = adata->stream[i];
> + spin_lock_irqsave(&adata->acp_lock, flags);
> + list_for_each_entry(stream, &adata->stream_list, list) {
If we're already in an interrupt handler here (presumably not a threaded
one) why are we using irqsave?
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists