2021-06-02 11:44:50

by Shengjiu Wang

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

Don't need to print error message for defer probe

Signed-off-by: Shengjiu Wang <[email protected]>
---
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


2021-06-02 15:46:12

by Fabio Estevam

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

Hi Shengjiu,

On Wed, Jun 2, 2021 at 3:59 AM Shengjiu Wang <[email protected]> wrote:
>
> Don't need to print error message for defer probe
...
> 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.

2021-06-03 02:59:53

by Shengjiu Wang

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

On Wed, Jun 2, 2021 at 11:45 PM Fabio Estevam <[email protected]> wrote:
>
> Hi Shengjiu,
>
> On Wed, Jun 2, 2021 at 3:59 AM Shengjiu Wang <[email protected]> wrote:
> >
> > Don't need to print error message for defer probe
> ...
> > 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

2021-06-22 02:16:50

by Fabio Estevam

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

Hi Shengjiu,

On Wed, Jun 2, 2021 at 3:59 AM Shengjiu Wang <[email protected]> wrote:
>
> Don't need to print error message for defer probe
>
> Signed-off-by: Shengjiu Wang <[email protected]>
> ---
> 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 <[email protected]>

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

Thanks

2021-06-22 15:16:40

by Mark Brown

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

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