ASoC: codecs: wsa881x: handle timeouts in resume path
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 30 Jun 2022 13:00:22 +0000 (14:00 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 30 Jun 2022 15:10:49 +0000 (16:10 +0100)
commitcf6af24b54903f9f70c29b3e5b19cb72cc862d60
tree0296ff58e7c8845dd24da9a1676a3e0f8cbfb8df
parentf3762ddfa24068cf67bc395cb80a7928306ad1ef
ASoC: codecs: wsa881x: 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: 8dd552458361 ("ASoC: codecs: wsa881x: add runtime pm support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220630130023.9308-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wsa881x.c