* [PATCH] ASoC: cs35l41: Always return 0 when a subsystem ID is found
@ 2025-12-06 19:38 Eric Naim
2025-12-08 9:31 ` Richard Fitzgerald
2025-12-09 10:21 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Eric Naim @ 2025-12-06 19:38 UTC (permalink / raw)
To: David Rhodes, Richard Fitzgerald, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Stefan Binding
Cc: Eric Naim, stable, linux-sound, patches, linux-kernel
When trying to get the system name in the _HID path, after successfully
retrieving the subsystem ID the return value isn't set to 0 but instead
still kept at -ENODATA, leading to a false negative:
[ 12.382507] cs35l41 spi-VLV1776:00: Subsystem ID: VLV1776
[ 12.382521] cs35l41 spi-VLV1776:00: probe with driver cs35l41 failed with error -61
Always return 0 when a subsystem ID is found to mitigate these false
negatives.
Link: https://github.com/CachyOS/CachyOS-Handheld/issues/83
Fixes: 46c8b4d2a693 ("ASoC: cs35l41: Fallback to reading Subsystem ID property if not ACPI")
Cc: stable@vger.kernel.org # 6.18
Signed-off-by: Eric Naim <dnaim@cachyos.org>
---
sound/soc/codecs/cs35l41.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/cs35l41.c b/sound/soc/codecs/cs35l41.c
index 173d7c59b725..5001a546a3e7 100644
--- a/sound/soc/codecs/cs35l41.c
+++ b/sound/soc/codecs/cs35l41.c
@@ -1188,13 +1188,14 @@ static int cs35l41_get_system_name(struct cs35l41_private *cs35l41)
}
}
-err:
if (sub) {
cs35l41->dsp.system_name = sub;
dev_info(cs35l41->dev, "Subsystem ID: %s\n", cs35l41->dsp.system_name);
- } else
- dev_warn(cs35l41->dev, "Subsystem ID not found\n");
+ return 0;
+ }
+err:
+ dev_warn(cs35l41->dev, "Subsystem ID not found\n");
return ret;
}
--
2.52.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: cs35l41: Always return 0 when a subsystem ID is found
2025-12-06 19:38 [PATCH] ASoC: cs35l41: Always return 0 when a subsystem ID is found Eric Naim
@ 2025-12-08 9:31 ` Richard Fitzgerald
2025-12-09 10:21 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Richard Fitzgerald @ 2025-12-08 9:31 UTC (permalink / raw)
To: Eric Naim, David Rhodes, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, Stefan Binding
Cc: stable, linux-sound, patches, linux-kernel
On 06/12/2025 7:38 pm, Eric Naim wrote:
> When trying to get the system name in the _HID path, after successfully
> retrieving the subsystem ID the return value isn't set to 0 but instead
> still kept at -ENODATA, leading to a false negative:
>
> [ 12.382507] cs35l41 spi-VLV1776:00: Subsystem ID: VLV1776
> [ 12.382521] cs35l41 spi-VLV1776:00: probe with driver cs35l41 failed with error -61
>
> Always return 0 when a subsystem ID is found to mitigate these false
> negatives.
>
> Link: https://github.com/CachyOS/CachyOS-Handheld/issues/83
> Fixes: 46c8b4d2a693 ("ASoC: cs35l41: Fallback to reading Subsystem ID property if not ACPI")
> Cc: stable@vger.kernel.org # 6.18
> Signed-off-by: Eric Naim <dnaim@cachyos.org>
> ---
> sound/soc/codecs/cs35l41.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/sound/soc/codecs/cs35l41.c b/sound/soc/codecs/cs35l41.c
> index 173d7c59b725..5001a546a3e7 100644
> --- a/sound/soc/codecs/cs35l41.c
> +++ b/sound/soc/codecs/cs35l41.c
> @@ -1188,13 +1188,14 @@ static int cs35l41_get_system_name(struct cs35l41_private *cs35l41)
> }
> }
>
> -err:
> if (sub) {
> cs35l41->dsp.system_name = sub;
> dev_info(cs35l41->dev, "Subsystem ID: %s\n", cs35l41->dsp.system_name);
> - } else
> - dev_warn(cs35l41->dev, "Subsystem ID not found\n");
> + return 0;
> + }
>
> +err:
> + dev_warn(cs35l41->dev, "Subsystem ID not found\n");
> return ret;
> }
>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: cs35l41: Always return 0 when a subsystem ID is found
2025-12-06 19:38 [PATCH] ASoC: cs35l41: Always return 0 when a subsystem ID is found Eric Naim
2025-12-08 9:31 ` Richard Fitzgerald
@ 2025-12-09 10:21 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2025-12-09 10:21 UTC (permalink / raw)
To: David Rhodes, Richard Fitzgerald, Liam Girdwood, Jaroslav Kysela,
Takashi Iwai, Stefan Binding, Eric Naim
Cc: stable, linux-sound, patches, linux-kernel
On Sun, 07 Dec 2025 03:38:12 +0800, Eric Naim wrote:
> When trying to get the system name in the _HID path, after successfully
> retrieving the subsystem ID the return value isn't set to 0 but instead
> still kept at -ENODATA, leading to a false negative:
>
> [ 12.382507] cs35l41 spi-VLV1776:00: Subsystem ID: VLV1776
> [ 12.382521] cs35l41 spi-VLV1776:00: probe with driver cs35l41 failed with error -61
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: cs35l41: Always return 0 when a subsystem ID is found
commit: b0ff70e9d4fe46cece25eb97b9b9b0166624af95
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-12-09 10:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-06 19:38 [PATCH] ASoC: cs35l41: Always return 0 when a subsystem ID is found Eric Naim
2025-12-08 9:31 ` Richard Fitzgerald
2025-12-09 10:21 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox