Skip to content

Commit f09b6e9

Browse files
jhovoldbroonie
authored andcommitted
ASoC: core: suppress probe deferral errors
Suppress probe deferral error messages when probing link components to avoid spamming the logs, for example, if a required component has not yet been registered: snd-sc8280xp sound: ASoC: failed to instantiate card -517 Note that dev_err_probe() is not used as the card can be unbound and rebound while the underlying platform device remains bound to its driver. Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20230705123018.30903-9-johan+linaro@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent b6c3bdd commit f09b6e9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sound/soc/soc-core.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,8 +1988,10 @@ static int snd_soc_bind_card(struct snd_soc_card *card)
19881988
/* probe all components used by DAI links on this card */
19891989
ret = soc_probe_link_components(card);
19901990
if (ret < 0) {
1991-
dev_err(card->dev,
1992-
"ASoC: failed to instantiate card %d\n", ret);
1991+
if (ret != -EPROBE_DEFER) {
1992+
dev_err(card->dev,
1993+
"ASoC: failed to instantiate card %d\n", ret);
1994+
}
19931995
goto probe_end;
19941996
}
19951997

0 commit comments

Comments
 (0)