linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: sdhci-of-arasan: Do now show error message in case of deffered probe
@ 2018-08-06  8:43 Michal Simek
  2018-08-22  9:48 ` Ulf Hansson
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2018-08-06  8:43 UTC (permalink / raw)
  To: linux-kernel, monstr
  Cc: Adrian Hunter, linux-mmc, Jaehoon Chung, u-boot,
	linux-arm-kernel, Ulf Hansson

When mmc-pwrseq property is passed mmc_pwrseq_alloc() can return
-EPROBE_DEFER because driver for power sequence provider is not probed
yet. Do not show error message when this situation happens.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 drivers/mmc/host/sdhci-of-arasan.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c
index e3332a522a5d..e65f3bce3643 100644
--- a/drivers/mmc/host/sdhci-of-arasan.c
+++ b/drivers/mmc/host/sdhci-of-arasan.c
@@ -772,7 +772,8 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
 
 	ret = mmc_of_parse(host->mmc);
 	if (ret) {
-		dev_err(&pdev->dev, "parsing dt failed (%d)\n", ret);
+		if (ret != -EPROBE_DEFER)
+			dev_err(&pdev->dev, "parsing dt failed (%d)\n", ret);
 		goto unreg_clk;
 	}
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mmc: sdhci-of-arasan: Do now show error message in case of deffered probe
  2018-08-06  8:43 [PATCH] mmc: sdhci-of-arasan: Do now show error message in case of deffered probe Michal Simek
@ 2018-08-22  9:48 ` Ulf Hansson
  0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2018-08-22  9:48 UTC (permalink / raw)
  To: Michal Simek
  Cc: Linux Kernel Mailing List, Michal Simek, Adrian Hunter,
	linux-mmc, Jaehoon Chung, u-boot, Linux ARM

On 6 August 2018 at 10:43, Michal Simek <michal.simek@xilinx.com> wrote:
> When mmc-pwrseq property is passed mmc_pwrseq_alloc() can return
> -EPROBE_DEFER because driver for power sequence provider is not probed
> yet. Do not show error message when this situation happens.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Thanks, queued for v4.20!

Kind regards
Uffe

> ---
>
>  drivers/mmc/host/sdhci-of-arasan.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c
> index e3332a522a5d..e65f3bce3643 100644
> --- a/drivers/mmc/host/sdhci-of-arasan.c
> +++ b/drivers/mmc/host/sdhci-of-arasan.c
> @@ -772,7 +772,8 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
>
>         ret = mmc_of_parse(host->mmc);
>         if (ret) {
> -               dev_err(&pdev->dev, "parsing dt failed (%d)\n", ret);
> +               if (ret != -EPROBE_DEFER)
> +                       dev_err(&pdev->dev, "parsing dt failed (%d)\n", ret);
>                 goto unreg_clk;
>         }
>
> --
> 1.9.1
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-22  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-06  8:43 [PATCH] mmc: sdhci-of-arasan: Do now show error message in case of deffered probe Michal Simek
2018-08-22  9:48 ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).