OSDN Git Service

ASoC: qcom: common: Avoid printing errors for -EPROBE_DEFER
authorStephan Gerhold <stephan@gerhold.net>
Thu, 23 Jul 2020 18:39:04 +0000 (20:39 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jul 2020 14:01:20 +0000 (15:01 +0100)
commita63419beafd4edf20761c37dbefd639a0b1b481e
tree98b82e5e005b6b6df4f4aa145aa05a0611a0bd9f
parent118205d241ef6fec395086c34f85717a41a8b4a1
ASoC: qcom: common: Avoid printing errors for -EPROBE_DEFER

qcom_snd_parse_of() tends to produce lots of error messages during bootup:

MultiMedia1: error getting cpu dai name

This happens because the DAIs are not probed until the ADSP remoteproc
has booted, which takes a while. Until it is ready, snd_soc_of_get_dai_name()
returns -EDEFER_PROBE to retry probing later. This is perfectly normal,
so cleanup the kernel log a bit by not printing in case of -EPROBE_DEFER.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200723183904.321040-8-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/common.c