ASoC: cs35l41: Always return 0 when a subsystem ID is found
Subsystems (4)
PATCH 1/1 ASoC: cs35l41: Always return 0 when a subsystem ID is found
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.
--- sound/soc/codecs/cs35l41.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
sound/soc/codecs/cs35l41.c +4 -3
@@ -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; }
Signature · 1 line
2.52.0
Quoted 30 lines · Eric Naim
When trying to get the system name in the
_HIDpath, 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 -61Always return 0 when a subsystem ID is found to mitigate these false negatives.
Fixes 46c8b4d2a693 ("ASoC: cs35l41: Fallback to reading Subsystem ID property if not ACPI")Cc [email protected] # 6.18Signed-off-by Eric Naim <[email protected]>--- sound/soc/codecs/cs35l41.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)sound/soc/codecs/cs35l41.c +0
-1@@ -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);
sound/soc/codecs/cs35l41.c static int cs35l41_get_system_name(struct cs35l41_private *cs35l41) · line 1201
Quoted 10 lines
sound/soc/codecs/cs35l41.c +4
-2- }else -dev_warn (cs35l41->dev,"Subsystem ID not found\n" ); +return 0 ; + } +err: +dev_warn (cs35l41->dev,"Subsystem ID not found\n" );return ret; }
Mark Brown
maintainerQuoted 8 lines · Eric Naim
When trying to get the system name in the
_HIDpath, 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