microchipsw: backport MDIO probe defferal silencing
Currently, MDIO driver will print the probe defferal as error. So, instead of spaming the log, backport the upstream fix for it. Signed-off-by: Robert Marko <robert.marko@sartura.hr>
This commit is contained in:
committed by
Robert Marko
parent
5584caa5b1
commit
5101f3f12f
+30
@@ -0,0 +1,30 @@
|
||||
From 65d6d1fa50933a056305ba3f743dfb9d74cead39 Mon Sep 17 00:00:00 2001
|
||||
From: Robert Marko <robert.marko@sartura.hr>
|
||||
Date: Fri, 15 May 2026 14:05:40 +0200
|
||||
Subject: [PATCH] net: phy: micrel: use dev_err_probe()
|
||||
|
||||
Currently, during probe defferal the driver will print multiple times:
|
||||
mscc-miim e20101a8.mdio: Cannot register MDIO bus (-517)
|
||||
|
||||
So, lets silence that by using the dev_err_probe() for printing the probe
|
||||
error as it handles probe defferal.
|
||||
|
||||
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
|
||||
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
|
||||
Link: https://patch.msgid.link/20260515120608.706361-1-robert.marko@sartura.hr
|
||||
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
||||
---
|
||||
drivers/net/mdio/mdio-mscc-miim.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/drivers/net/mdio/mdio-mscc-miim.c
|
||||
+++ b/drivers/net/mdio/mdio-mscc-miim.c
|
||||
@@ -330,7 +330,7 @@ static int mscc_miim_probe(struct platfo
|
||||
|
||||
ret = of_mdiobus_register(bus, np);
|
||||
if (ret < 0) {
|
||||
- dev_err(dev, "Cannot register MDIO bus (%d)\n", ret);
|
||||
+ dev_err_probe(dev, ret, "Cannot register MDIO bus\n");
|
||||
goto out_disable_clk;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user