]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: wsa883x: handle timeouts in resume path
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 30 Jun 2022 13:00:23 +0000 (14:00 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 30 Jun 2022 15:10:50 +0000 (16:10 +0100)
commiteae5faa9401674ec9fa70883c4b05cc85261244b
treec569440fa62f7e5fb65db2b7101d8e380f885e41
parent21c5b00a5f612e1b8c7c7a66bb695f6ee4e0275b
ASoC: codecs: wsa883x: handle timeouts in resume path

Currently we do not check if SoundWire slave initialization timeout
expired before continuing to access its registers.

Its possible that the registers are not accessible if timeout is
expired. Handle this by returning timeout in resume path.

Reported-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fixes: 1d1c55611719 ("ASoC: codecs: add wsa883x amplifier support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220630130023.9308-2-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wsa883x.c