Skip to contentSkip to conversation

net: mdio: xgene: Fix misleading err message in xgene mdio read

PATCH Applied Alok Tiwari 4 participants 4 messages Mar 4 – Mar 6

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: mdio: xgene: Fix misleading err message in xgene mdio read

xgene_xfi_mdio_read() prints "write failed" when the MDIO management interface remains busy and the read times out. Update the message to "read failed" to match the operation.

---
 drivers/net/mdio/mdio-xgene.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mdio/mdio-xgene.c +1 -1
index a8f91a4b7fed..ede6b9ddc426 100644
@@ -250,7 +250,7 @@ static int xgene_xfi_mdio_read(struct mii_bus *bus, int phy_id, int reg)
 	} while ((status & BUSY_MASK) && timeout--);
 
 	if (status & BUSY_MASK) {
-		pr_err("XGENET_MII_MGMT write failed\n");
+		pr_err("XGENET_MII_MGMT read failed\n");
 		return -EBUSY;
 	}
 
Signature · 1 line
2.50.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Alok Tiwari

xgene_xfi_mdio_read() prints "write failed" when the MDIO management interface remains busy and the read times out. Update the message to "read failed" to match the operation.

---
 drivers/net/mdio/mdio-xgene.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mdio/mdio-xgene.c +0 -0
index a8f91a4b7fed..ede6b9ddc426 100644

drivers/net/mdio/mdio-xgene.c static int xgene_xfi_mdio_read(struct mii_bus *bus, int phy_id, int reg) · line 253

Quoted 5 lines
drivers/net/mdio/mdio-xgene.c +1 -1
@@ -250,7 +250,7 @@ static int xgene_xfi_mdio_read(struct mii_bus *bus, int phy_id, int reg)
 	} while ((status & BUSY_MASK) && timeout--);
 
 	if (status & BUSY_MASK) {
-		pr_err("XGENET_MII_MGMT write failed\n");
+		pr_err("XGENET_MII_MGMT read failed\n");

It is not even a plain cut/paste error. xgene_xfi_mdio_write() does not print an error message!

Andrew

reviewer Reviewed-by on v1 1/1
#2 lore raw
In reply to Alok Tiwari
Quoted 5 lines · Alok Tiwari

xgene_xfi_mdio_read() prints "write failed" when the MDIO management interface remains busy and the read times out. Update the message to "read failed" to match the operation.

Thanks!

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
#3 lore raw
In reply to Alok Tiwari
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Wed, 4 Mar 2026 11:57:36 -0800 you wrote:

xgene_xfi_mdio_read() prints "write failed" when the MDIO management interface remains busy and the read times out. Update the message to "read failed" to match the operation.

---
 drivers/net/mdio/mdio-xgene.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [net-next] net: mdio: xgene: Fix misleading err message in xgene mdio read

    https://git.kernel.org/netdev/net-next/c/54f5a89da9e0

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html