Skip to contentSkip to conversation

ASoC: amd: Don't show messages about deferred probing by default

PATCH Superseded Mario Limonciello 1 participant 2 messages Jun 15, 2021 – Jul 21, 2021

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: amd: Don't show messages about deferred probing by default

Nearly every boot with a Lenovo P14s is showing acp_pdm_mach acp_pdm_mach.0: snd_soc_register_card(acp) failed: -517

This isn't useful to a user, especially as probing will run again. Downgrade the message to debug, and only show errors.

---
 sound/soc/amd/renoir/acp3x-rn.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
sound/soc/amd/renoir/acp3x-rn.c +8 -3
index 306134b89a82..e785994de614 100644
@@ -54,9 +54,14 @@ static int acp_probe(struct platform_device *pdev)
 	snd_soc_card_set_drvdata(card, machine);
 	ret = devm_snd_soc_register_card(&pdev->dev, card);
 	if (ret) {
-		dev_err(&pdev->dev,
-			"snd_soc_register_card(%s) failed: %d\n",
-			acp_card.name, ret);
+		if (ret != -EPROBE_DEFER)
+			dev_err(&pdev->dev,
+				"snd_soc_register_card(%s) failed: %d\n",
+				card->name, ret);
+		else
+			dev_dbg(&pdev->dev,
+				"snd_soc_register_card(%s) probe deferred: %d\n",
+				card->name, ret);
 		return ret;
 	}
 	return 0;
Signature · 1 line
2.25.1
#1 lore raw

[Public]

Quoted 45 lines

-----Original Message-----
From: Limonciello, Mario <[email protected]>
Sent: Friday, June 11, 2021 13:52
To: Takashi Iwai <[email protected]>; moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM... <[email protected]>
Cc: Mukunda, Vijendar <[email protected]>; Limonciello, Mario <[email protected]>; [email protected]
Subject: [PATCH] ASoC: amd: Don't show messages about deferred probing by default

Nearly every boot with a Lenovo P14s is showing acp_pdm_mach acp_pdm_mach.0: snd_soc_register_card(acp) failed: -517

This isn't useful to a user, especially as probing will run again. Downgrade the message to debug, and only show errors.

---
 sound/soc/amd/renoir/acp3x-rn.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
sound/soc/amd/renoir/acp3x- renamed from sound/soc/amd/renoir/acp3x-rn.c +0 -0

rn.c
index 306134b89a82..e785994de614 100644

sound/soc/amd/renoir/acp3x-rn.c +8 -3
@@ -54,9 +54,14 @@ static int acp_probe(struct platform_device *pdev)
 	snd_soc_card_set_drvdata(card, machine);
 	ret = devm_snd_soc_register_card(&pdev->dev, card);
 	if (ret) {
-		dev_err(&pdev->dev,
-			"snd_soc_register_card(%s) failed: %d\n",
-			acp_card.name, ret);
+		if (ret != -EPROBE_DEFER)
+			dev_err(&pdev->dev,
+				"snd_soc_register_card(%s) failed: %d\n",
+				card->name, ret);
+		else
+			dev_dbg(&pdev->dev,
+				"snd_soc_register_card(%s) probe deferred:
 %d\n",
+				card->name, ret);
 		return ret;
 	}
Quoted 3 lines

return 0;
--
2.25.1

Hi Takashi, Vijendar,

Did you see this?