Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: codecs: wcd938x: handle deferred probe

WCD938x sound codec driver ignores return status of getting regulators
and returns EINVAL instead of EPROBE_DEFER. If regulator provider
probes after the codec, system is left without probed audio:

wcd938x_codec audio-codec: wcd938x_probe: Fail to obtain platform data
wcd938x_codec: probe of audio-codec failed with error -22

Fixes: 16572522aece ("ASoC: codecs: wcd938x-sdw: add SoundWire driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240117151208.1219755-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
086df711 6cc2aa9a

+1 -1
+1 -1
sound/soc/codecs/wcd938x.c
··· 3589 3589 ret = wcd938x_populate_dt_data(wcd938x, dev); 3590 3590 if (ret) { 3591 3591 dev_err(dev, "%s: Fail to obtain platform data\n", __func__); 3592 - return -EINVAL; 3592 + return ret; 3593 3593 } 3594 3594 3595 3595 ret = wcd938x_add_slave_components(wcd938x, dev, &match);