]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: mediatek: mt6359: Fix DT parse error due to wrong child node name
authorLouis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Fri, 28 Feb 2025 10:32:19 +0000 (11:32 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 4 Mar 2025 12:27:11 +0000 (12:27 +0000)
commit79c080c75cdd0a5ba38be039f6f9bb66ec53b0c4
tree459c18373ee330e7597fac2653a745c4090bf187
parenta02c42d41af7d66db71ca43c52531c3253ebe35e
ASoC: mediatek: mt6359: Fix DT parse error due to wrong child node name

A recent dtbs_check error fix in mt6359.dtsi file changed a node name
(from "mt6359codec" to "audio-codec") without modifying the mt6539
codec code that uses it.
It leads to a probe failure after devicetree parsing returns in error:
```
[    1.354025] mt6359-sound mt6359-sound: mt6359_platform_driver_probe() failed to parse dts
[    1.355066] mt6359-sound mt6359-sound: probe with driver mt6359-sound failed with error -22
```

So, add the child node retrieval with the new name and if not found,
try with the older one for backward compatibility.

Fixes: 76b35f59bbe6 ("arm64: dts: mediatek: mt6359: fix dtbs_check error for audio-codec")
Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Link: https://patch.msgid.link/20250228-mt6359-fix-probe-failed-v1-1-64941d387b2c@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/mt6359.c