[PATCH] ASoC: fsl-asoc-card: change dev_err to dev_dbg for defer probe

Subsystems: freescale soc sound drivers, sound, sound - soc layer / dynamic audio power management (asoc), the rest

STALE1931d LANDED

Landed in mainline as 4b1d51715d1c on 2021-06-22.

5 messages, 4 authors, 2021-06-22 · open the first message on its own page

[PATCH] ASoC: fsl-asoc-card: change dev_err to dev_dbg for defer probe

From: Shengjiu Wang <hidden>
Date: 2021-06-02 07:00:00

Don't need to print error message for defer probe

Signed-off-by: Shengjiu Wang <redacted>
---
 sound/soc/fsl/fsl-asoc-card.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index 4f55b316cf0f..b40ba910ae9d 100644
--- a/sound/soc/fsl/fsl-asoc-card.c
+++ b/sound/soc/fsl/fsl-asoc-card.c
@@ -709,7 +709,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
 	of_node_put(framemaster);
 
 	if (!fsl_asoc_card_is_ac97(priv) && !codec_dev) {
-		dev_err(&pdev->dev, "failed to find codec device\n");
+		dev_dbg(&pdev->dev, "failed to find codec device\n");
 		ret = -EPROBE_DEFER;
 		goto asrc_fail;
 	}
-- 
2.27.0

Re: [PATCH] ASoC: fsl-asoc-card: change dev_err to dev_dbg for defer probe

From: Fabio Estevam <festevam@gmail.com>
Date: 2021-06-02 15:44:31

Hi Shengjiu,

On Wed, Jun 2, 2021 at 3:59 AM Shengjiu Wang [off-list ref] wrote:
Don't need to print error message for defer probe
...
quoted hunk
        if (!fsl_asoc_card_is_ac97(priv) && !codec_dev) {
-               dev_err(&pdev->dev, "failed to find codec device\n");
+               dev_dbg(&pdev->dev, "failed to find codec device\n");
You may consider using dev_err_probe() here, which fits exactly this purpose.

Re: [PATCH] ASoC: fsl-asoc-card: change dev_err to dev_dbg for defer probe

From: Shengjiu Wang <shengjiu.wang@gmail.com>
Date: 2021-06-03 02:56:24

On Wed, Jun 2, 2021 at 11:45 PM Fabio Estevam [off-list ref] wrote:
Hi Shengjiu,

On Wed, Jun 2, 2021 at 3:59 AM Shengjiu Wang [off-list ref] wrote:
quoted
Don't need to print error message for defer probe
...
quoted
        if (!fsl_asoc_card_is_ac97(priv) && !codec_dev) {
-               dev_err(&pdev->dev, "failed to find codec device\n");
+               dev_dbg(&pdev->dev, "failed to find codec device\n");
You may consider using dev_err_probe() here, which fits exactly this purpose.
ok, let me update it.

best regards
wang shengjiu

Re: [PATCH] ASoC: fsl-asoc-card: change dev_err to dev_dbg for defer probe

From: Fabio Estevam <festevam@gmail.com>
Date: 2021-06-22 02:15:54

Hi Shengjiu,

On Wed, Jun 2, 2021 at 3:59 AM Shengjiu Wang [off-list ref] wrote:
quoted hunk
Don't need to print error message for defer probe

Signed-off-by: Shengjiu Wang <redacted>
---
 sound/soc/fsl/fsl-asoc-card.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index 4f55b316cf0f..b40ba910ae9d 100644
--- a/sound/soc/fsl/fsl-asoc-card.c
+++ b/sound/soc/fsl/fsl-asoc-card.c
@@ -709,7 +709,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
        of_node_put(framemaster);

        if (!fsl_asoc_card_is_ac97(priv) && !codec_dev) {
-               dev_err(&pdev->dev, "failed to find codec device\n");
+               dev_dbg(&pdev->dev, "failed to find codec device\n");
                ret = -EPROBE_DEFER;
This looks good:

Reviewed-by: Fabio Estevam <festevam@gmail.com>

My previous suggestion of using dev_err_probe() would make the message
never to be printed.

Thanks

Re: [PATCH] ASoC: fsl-asoc-card: change dev_err to dev_dbg for defer probe

From: Mark Brown <broonie@kernel.org>
Date: 2021-06-22 15:14:52

On Wed, 2 Jun 2021 14:42:12 +0800, Shengjiu Wang wrote:
Don't need to print error message for defer probe
Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: fsl-asoc-card: change dev_err to dev_dbg for defer probe
      commit: 4b1d51715d1cf78a1527fe426fc0278dcfea1959

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help