[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zx9plzaiLcObb6PT@opensource.cirrus.com>
Date: Mon, 28 Oct 2024 10:38:15 +0000
From: Charles Keepax <ckeepax@...nsource.cirrus.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
CC: David Rhodes <david.rhodes@...rus.com>,
Richard Fitzgerald
<rf@...nsource.cirrus.com>,
Liam Girdwood <lgirdwood@...il.com>, Mark Brown
<broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai
<tiwai@...e.com>,
Olivier Moysan <olivier.moysan@...com>, <linux-kernel@...r.kernel.org>,
<kernel-janitors@...r.kernel.org>, <linux-sound@...r.kernel.org>,
<patches@...nsource.cirrus.com>
Subject: Re: [PATCH] ASoC: cs42l51: Fix some error handling paths in
cs42l51_probe()
On Sat, Oct 26, 2024 at 10:46:34PM +0200, Christophe JAILLET wrote:
> If devm_gpiod_get_optional() fails, we need to disable previously enabled
> regulators, as done in the other error handling path of the function.
>
> Also, gpiod_set_value_cansleep(, 1) needs to be called to undo a
> potential gpiod_set_value_cansleep(, 0).
> If the "reset" gpio is not defined, this additional call is just a no-op.
>
> This behavior is the same as the one already in the .remove() function.
>
> Fixes: 11b9cd748e31 ("ASoC: cs42l51: add reset management")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
> ---
Reviewed-by: Charles Keepax <ckeepax@...nsource.cirrus.com>
Thanks,
Charles
Powered by blists - more mailing lists