[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <21635274-1d7b-5ed9-6832-2e12fd844f7a@linaro.org>
Date: Mon, 5 Mar 2018 20:35:48 +0000
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Mark Brown <broonie@...nel.org>
Cc: Liam Girdwood <lgirdwood@...il.com>, Takashi Iwai <tiwai@...e.com>,
Jaroslav Kysela <perex@...ex.cz>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH] ASoC: dapm: add support to pinctrl dapm
Thanks for the review,
On 05/03/18 15:52, Mark Brown wrote:
> On Mon, Mar 05, 2018 at 12:32:13PM +0000, srinivas.kandagatla@...aro.org wrote:
>
>> +int dapm_pinctrl_event(struct snd_soc_dapm_widget *w,
>> + struct snd_kcontrol *kcontrol, int event)
>> +{
>> + struct snd_soc_dapm_pinctrl_priv *priv = w->priv;
>> + struct pinctrl *p = w->pinctrl;
>> + struct pinctrl_state *s;
>> +
>> + if (!p || !priv)
>> + return -EIO;
>> +
>> + soc_dapm_async_complete(w->dapm);
>
> This doesn't look right - we're trying to synchronize with the DAPM
> async queue from something that should be run inside that very queue.
> What is this supposed to be doing?
I thought this is supposed to ensure that any pending asynchronous I/O
is completed before touching pinctrl framework.
TBH, I have done this inline with regulators/clk dapm events.
--srini
>
Powered by blists - more mailing lists