Skip to content

Commit 5101f3f

Browse files
committed
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>
1 parent 5584caa commit 5101f3f

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From 65d6d1fa50933a056305ba3f743dfb9d74cead39 Mon Sep 17 00:00:00 2001
2+
From: Robert Marko <robert.marko@sartura.hr>
3+
Date: Fri, 15 May 2026 14:05:40 +0200
4+
Subject: [PATCH] net: phy: micrel: use dev_err_probe()
5+
6+
Currently, during probe defferal the driver will print multiple times:
7+
mscc-miim e20101a8.mdio: Cannot register MDIO bus (-517)
8+
9+
So, lets silence that by using the dev_err_probe() for printing the probe
10+
error as it handles probe defferal.
11+
12+
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
13+
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
14+
Link: https://patch.msgid.link/20260515120608.706361-1-robert.marko@sartura.hr
15+
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
16+
---
17+
drivers/net/mdio/mdio-mscc-miim.c | 2 +-
18+
1 file changed, 1 insertion(+), 1 deletion(-)
19+
20+
--- a/drivers/net/mdio/mdio-mscc-miim.c
21+
+++ b/drivers/net/mdio/mdio-mscc-miim.c
22+
@@ -330,7 +330,7 @@ static int mscc_miim_probe(struct platfo
23+
24+
ret = of_mdiobus_register(bus, np);
25+
if (ret < 0) {
26+
- dev_err(dev, "Cannot register MDIO bus (%d)\n", ret);
27+
+ dev_err_probe(dev, ret, "Cannot register MDIO bus\n");
28+
goto out_disable_clk;
29+
}
30+

0 commit comments

Comments
 (0)