net: mdio: xgene: Fix misleading err message in xgene mdio read
Subsystems (4)
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
@@ -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
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.Signed-off-by Alok Tiwari <[email protected]>--- drivers/net/mdio/mdio-xgene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/mdio/mdio-xgene.c +0
-0
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
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.Signed-off-by Alok Tiwari <[email protected]>
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!
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.Signed-off-by Alok Tiwari <[email protected]>--- 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