]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: mdio: xgene: Fix misleading err message in xgene mdio read
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Wed, 4 Mar 2026 19:57:36 +0000 (11:57 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Mar 2026 02:32:01 +0000 (18:32 -0800)
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 <alok.a.tiwari@oracle.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20260304195755.2468204-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-xgene.c

index a8f91a4b7fed0927ee14e408000cd3a2bfb9b09a..ede6b9ddc426147f3fd9f5edf6c1befc4080bf1d 100644 (file)
@@ -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;
        }