aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-07-10 15:52:31 +0200
committerMark Brown <broonie@kernel.org>2024-07-29 01:17:17 +0100
commit2fbf16992e5aa14acf0441320033a01a32309ded (patch)
tree01a4c15fe02586314f230c9bfefac14663822ac4 /tools/perf/scripts
parentASoC: codecs: wsa881x: Drop unused version readout (diff)
downloadlinux-2fbf16992e5aa14acf0441320033a01a32309ded.tar.gz
linux-2fbf16992e5aa14acf0441320033a01a32309ded.zip
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>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions