Skip to contentSkip to conversation

ASoC: AMD: Clean kernel log from deferred probe error messages

PATCH Superseded Akshu Agrawal 3 participants 3 messages Aug 26, 2020

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: AMD: Clean kernel log from deferred probe error messages

While the driver waits for DAIs to be probed and retries probing, avoid printing error messages.

---
 sound/soc/amd/acp3x-rt5682-max9836.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
sound/soc/amd/acp3x-rt5682-max9836.c +2 -4
index 406526e79af3..67f80ba51de0 100644
@@ -471,13 +471,11 @@ static int acp3x_probe(struct platform_device *pdev)
 	}
 
 	ret = devm_snd_soc_register_card(&pdev->dev, card);
-	if (ret) {
+	if (ret && ret != -EPROBE_DEFER)
 		dev_err(&pdev->dev,
 				"devm_snd_soc_register_card(%s) failed: %d\n",
 				card->name, ret);
-		return ret;
-	}
-	return 0;
+	return ret;
 }
 
 static const struct acpi_device_id acp3x_audio_acpi_match[] = {
Signature · 1 line
2.20.1
maintainer
#1 lore raw
Quoted 2 lines · Akshu Agrawal

While the driver waits for DAIs to be probed and retries probing, avoid printing error messages.

This means that if there is a problem with deferred probe no diagnostics will be available, there should be something at least at debug level.

#2 lore raw
Quoted 5 lines · Mark Brown
Quoted 2 lines · Akshu Agrawal

While the driver waits for DAIs to be probed and retries probing, avoid printing error messages.

This means that if there is a problem with deferred probe no diagnostics will be available, there should be something at least at debug level.

Sure will add a message at debug level for deferred probe.

Thanks,
Akshu