All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Agner <stefan@agner.ch>
To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com
Cc: fabio.estevam@nxp.com, lgirdwood@gmail.com, broonie@kernel.org,
	perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org,
	linux-kernel@vger.kernel.org, Stefan Agner <stefan@agner.ch>
Subject: [PATCH 1/5] ASoC: fsl_spdif: don't print EPROBE_DEFER as error
Date: Thu, 17 Jan 2019 10:06:36 +0100	[thread overview]
Message-ID: <20190117090640.12972-1-stefan@agner.ch> (raw)

Probe deferral is to be expected during normal operation, so avoid
printing an error when it is encountered.

Signed-off-by: Stefan Agner <stefan@agner.ch>
---
 sound/soc/fsl/fsl_spdif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c
index 740b90df44bb..a26686e7281c 100644
--- a/sound/soc/fsl/fsl_spdif.c
+++ b/sound/soc/fsl/fsl_spdif.c
@@ -1320,7 +1320,7 @@ static int fsl_spdif_probe(struct platform_device *pdev)
 	}
 
 	ret = imx_pcm_dma_init(pdev, IMX_SPDIF_DMABUF_SIZE);
-	if (ret)
+	if (ret && ret != -EPROBE_DEFER)
 		dev_err(&pdev->dev, "imx_pcm_dma_init failed: %d\n", ret);
 
 	return ret;
-- 
2.20.1


WARNING: multiple messages have this Message-ID (diff)
From: Stefan Agner <stefan@agner.ch>
To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
	tiwai@suse.com, Stefan Agner <stefan@agner.ch>,
	lgirdwood@gmail.com, broonie@kernel.org, fabio.estevam@nxp.com
Subject: [PATCH 1/5] ASoC: fsl_spdif: don't print EPROBE_DEFER as error
Date: Thu, 17 Jan 2019 10:06:36 +0100	[thread overview]
Message-ID: <20190117090640.12972-1-stefan@agner.ch> (raw)

Probe deferral is to be expected during normal operation, so avoid
printing an error when it is encountered.

Signed-off-by: Stefan Agner <stefan@agner.ch>
---
 sound/soc/fsl/fsl_spdif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c
index 740b90df44bb..a26686e7281c 100644
--- a/sound/soc/fsl/fsl_spdif.c
+++ b/sound/soc/fsl/fsl_spdif.c
@@ -1320,7 +1320,7 @@ static int fsl_spdif_probe(struct platform_device *pdev)
 	}
 
 	ret = imx_pcm_dma_init(pdev, IMX_SPDIF_DMABUF_SIZE);
-	if (ret)
+	if (ret && ret != -EPROBE_DEFER)
 		dev_err(&pdev->dev, "imx_pcm_dma_init failed: %d\n", ret);
 
 	return ret;
-- 
2.20.1

             reply	other threads:[~2019-01-17  9:07 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-17  9:06 Stefan Agner [this message]
2019-01-17  9:06 ` [PATCH 1/5] ASoC: fsl_spdif: don't print EPROBE_DEFER as error Stefan Agner
2019-01-17  9:06 ` [PATCH 2/5] ASoC: imx-spdif: " Stefan Agner
2019-01-17  9:59   ` [alsa-devel] " Daniel Baluta
2019-01-17 22:00   ` Nicolin Chen
2019-01-17  9:06 ` [PATCH 3/5] ASoC: imx-sgtl5000: " Stefan Agner
2019-01-17 10:01   ` [alsa-devel] " Daniel Baluta
2019-01-17 22:03   ` Nicolin Chen
2019-01-17  9:06 ` [PATCH 4/5] ASoC: imx-sgtl5000: put of nodes if finding codec fails Stefan Agner
2019-01-17  9:06   ` Stefan Agner
2019-01-17 10:04   ` [alsa-devel] " Daniel Baluta
2019-01-17 12:04   ` Fabio Estevam
2019-01-17 22:04   ` Nicolin Chen
2019-01-17  9:06 ` [PATCH 5/5] ASoC: imx-sgtl5000: lower log level for potential probe deferral cases Stefan Agner
2019-01-17 10:00   ` [alsa-devel] " Daniel Baluta
2019-01-17 22:01   ` Nicolin Chen
2019-01-17 22:01     ` Nicolin Chen
2019-01-17 10:01 ` [alsa-devel] [PATCH 1/5] ASoC: fsl_spdif: don't print EPROBE_DEFER as error Daniel Baluta
2019-01-17 21:52 ` Nicolin Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190117090640.12972-1-stefan@agner.ch \
    --to=stefan@agner.ch \
    --cc=Xiubo.Lee@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=fabio.estevam@nxp.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nicoleotsuka@gmail.com \
    --cc=perex@perex.cz \
    --cc=timur@kernel.org \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.