]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codecs: wsa883x: Handle reading version failure
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 10 Jul 2024 13:52:31 +0000 (15:52 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Jul 2024 00:17:17 +0000 (01:17 +0100)
commit2fbf16992e5aa14acf0441320033a01a32309ded
tree01a4c15fe02586314f230c9bfefac14663822ac4
parent3d2a69eb503d15171a7ba51cf0b562728ac396b7
ASoC: codecs: wsa883x: Handle reading version failure

If reading version and variant from registers fails (which is unlikely
but possible, because it is a read over bus), the driver will proceed
and perform device configuration based on uninitialized stack variables.
Handle it a bit better - bail out without doing any init and failing the
update status Soundwire callback.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240710-asoc-wsa88xx-version-v1-2-f1c54966ccde@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wsa883x.c