From: Alok Tiwari Date: Wed, 4 Mar 2026 19:57:36 +0000 (-0800) Subject: net: mdio: xgene: Fix misleading err message in xgene mdio read X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54f5a89da9e083322a0af171126020d509593414;p=thirdparty%2Fkernel%2Flinux.git 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. Signed-off-by: Alok Tiwari Reviewed-by: Andrew Lunn Reviewed-by: Russell King (Oracle) Link: https://patch.msgid.link/20260304195755.2468204-1-alok.a.tiwari@oracle.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/mdio/mdio-xgene.c b/drivers/net/mdio/mdio-xgene.c index a8f91a4b7fed0..ede6b9ddc4261 100644 --- a/drivers/net/mdio/mdio-xgene.c +++ b/drivers/net/mdio/mdio-xgene.c @@ -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; }