* [PATCH 1/1] ASoC: codec: tlv320aic32x4: Fix reset GPIO check
@ 2025-07-16 6:57 Alexander Stein
2025-07-16 7:44 ` Peng Fan
2025-07-16 15:56 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Alexander Stein @ 2025-07-16 6:57 UTC (permalink / raw)
To: Shenghao Ding, Kevin Lu, Baojun Xu, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Peng Fan, Linus Walleij
Cc: Alexander Stein, linux-sound, linux-kernel
rstn_gpio being a GPIO descriptor the check is wrong (inverted) for
releasing the reset of the codec.
Fixes: 790d5f8ee6f2 ("ASoC: codec: tlv320aic32x4: Convert to GPIO descriptors")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
AFAICT this bug was introduced on v2 of the series which changed the
validity check
sound/soc/codecs/tlv320aic32x4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c
index 3b89980e9bcf2..7399080f8580c 100644
--- a/sound/soc/codecs/tlv320aic32x4.c
+++ b/sound/soc/codecs/tlv320aic32x4.c
@@ -1388,7 +1388,7 @@ int aic32x4_probe(struct device *dev, struct regmap *regmap,
return ret;
}
- if (!aic32x4->rstn_gpio) {
+ if (aic32x4->rstn_gpio) {
ndelay(10);
/* deassert reset */
gpiod_set_value_cansleep(aic32x4->rstn_gpio, 0);
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH 1/1] ASoC: codec: tlv320aic32x4: Fix reset GPIO check
2025-07-16 6:57 [PATCH 1/1] ASoC: codec: tlv320aic32x4: Fix reset GPIO check Alexander Stein
@ 2025-07-16 7:44 ` Peng Fan
2025-07-16 15:56 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Peng Fan @ 2025-07-16 7:44 UTC (permalink / raw)
To: Alexander Stein, Shenghao Ding, Kevin Lu, Baojun Xu,
Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Linus Walleij
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
> Subject: [PATCH 1/1] ASoC: codec: tlv320aic32x4: Fix reset GPIO check
>
> rstn_gpio being a GPIO descriptor the check is wrong (inverted) for
> releasing the reset of the codec.
>
> Fixes: 790d5f8ee6f2 ("ASoC: codec: tlv320aic32x4: Convert to GPIO
> descriptors")
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> AFAICT this bug was introduced on v2 of the series which changed the
> validity check
>
> sound/soc/codecs/tlv320aic32x4.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/codecs/tlv320aic32x4.c
> b/sound/soc/codecs/tlv320aic32x4.c
> index 3b89980e9bcf2..7399080f8580c 100644
> --- a/sound/soc/codecs/tlv320aic32x4.c
> +++ b/sound/soc/codecs/tlv320aic32x4.c
> @@ -1388,7 +1388,7 @@ int aic32x4_probe(struct device *dev, struct
> regmap *regmap,
> return ret;
> }
>
> - if (!aic32x4->rstn_gpio) {
> + if (aic32x4->rstn_gpio) {
Oops! Thanks for spotting this.
Reviewed-by: Peng Fan <peng.fan@nxp.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] ASoC: codec: tlv320aic32x4: Fix reset GPIO check
2025-07-16 6:57 [PATCH 1/1] ASoC: codec: tlv320aic32x4: Fix reset GPIO check Alexander Stein
2025-07-16 7:44 ` Peng Fan
@ 2025-07-16 15:56 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2025-07-16 15:56 UTC (permalink / raw)
To: Shenghao Ding, Kevin Lu, Baojun Xu, Liam Girdwood,
Jaroslav Kysela, Takashi Iwai, Peng Fan, Linus Walleij,
Alexander Stein
Cc: linux-sound, linux-kernel
On Wed, 16 Jul 2025 08:57:07 +0200, Alexander Stein wrote:
> rstn_gpio being a GPIO descriptor the check is wrong (inverted) for
> releasing the reset of the codec.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: codec: tlv320aic32x4: Fix reset GPIO check
commit: 8778837f0a5b7c1bc5dbf0cccd7619fec6981588
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-16 15:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16 6:57 [PATCH 1/1] ASoC: codec: tlv320aic32x4: Fix reset GPIO check Alexander Stein
2025-07-16 7:44 ` Peng Fan
2025-07-16 15:56 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).