All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: stmmac: Do not output error on deferred probe
@ 2019-05-27 10:52 Thierry Reding
  2019-05-28 17:25 ` Andrew Lunn
  2019-05-28 18:00 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Thierry Reding @ 2019-05-27 10:52 UTC (permalink / raw)
  To: David S. Miller, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu
  Cc: Jon Hunter, netdev, linux-tegra

From: Thierry Reding <treding@nvidia.com>

If the subdriver defers probe, do not show an error message. It's
perfectly fine for this error to occur since the driver will get another
chance to probe after some time and will usually succeed after all of
the resources that it requires have been registered.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
index 3256e5cbad27..5bc224834c77 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
@@ -455,7 +455,11 @@ static int dwc_eth_dwmac_probe(struct platform_device *pdev)
 	priv = data->probe(pdev, plat_dat, &stmmac_res);
 	if (IS_ERR(priv)) {
 		ret = PTR_ERR(priv);
-		dev_err(&pdev->dev, "failed to probe subdriver: %d\n", ret);
+
+		if (ret != -EPROBE_DEFER)
+			dev_err(&pdev->dev, "failed to probe subdriver: %d\n",
+				ret);
+
 		goto remove_config;
 	}
 
-- 
2.21.0

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

* Re: [PATCH] net: stmmac: Do not output error on deferred probe
  2019-05-27 10:52 [PATCH] net: stmmac: Do not output error on deferred probe Thierry Reding
@ 2019-05-28 17:25 ` Andrew Lunn
  2019-05-28 18:00 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2019-05-28 17:25 UTC (permalink / raw)
  To: Thierry Reding
  Cc: David S. Miller, Giuseppe Cavallaro, Alexandre Torgue,
	Jose Abreu, Jon Hunter, netdev, linux-tegra

On Mon, May 27, 2019 at 12:52:51PM +0200, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> If the subdriver defers probe, do not show an error message. It's
> perfectly fine for this error to occur since the driver will get another
> chance to probe after some time and will usually succeed after all of
> the resources that it requires have been registered.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

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

* Re: [PATCH] net: stmmac: Do not output error on deferred probe
  2019-05-27 10:52 [PATCH] net: stmmac: Do not output error on deferred probe Thierry Reding
  2019-05-28 17:25 ` Andrew Lunn
@ 2019-05-28 18:00 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2019-05-28 18:00 UTC (permalink / raw)
  To: thierry.reding
  Cc: peppe.cavallaro, alexandre.torgue, joabreu, jonathanh, netdev,
	linux-tegra

From: Thierry Reding <thierry.reding@gmail.com>
Date: Mon, 27 May 2019 12:52:51 +0200

> From: Thierry Reding <treding@nvidia.com>
> 
> If the subdriver defers probe, do not show an error message. It's
> perfectly fine for this error to occur since the driver will get another
> chance to probe after some time and will usually succeed after all of
> the resources that it requires have been registered.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>

Applied.

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

end of thread, other threads:[~2019-05-28 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-27 10:52 [PATCH] net: stmmac: Do not output error on deferred probe Thierry Reding
2019-05-28 17:25 ` Andrew Lunn
2019-05-28 18:00 ` David Miller

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.