aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShruti Kanetkar <Shruti@Freescale.com>2014-06-11 14:41:40 -0400
committerDavid S. Miller <davem@davemloft.net>2014-06-11 18:50:59 -0400
commit55fd36419c1f27053f7e0cd067450b2f6a62cec8 (patch)
tree9203f9101ce11e1a40dd14ba6fbf59ffa2fedb63
parent6e765a009ad33845033f94cf47159327f2ba59db (diff)
net/fsl: Make xgmac_mdio read error message useful
Print the device address, the register number and the PHY ID for which the MDIO read operation failed Signed-off-by: Shruti Kanetkar <Shruti@Freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/freescale/xgmac_mdio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c
index d449fcb90199..0c9d55c862ae 100644
--- a/drivers/net/ethernet/freescale/xgmac_mdio.c
+++ b/drivers/net/ethernet/freescale/xgmac_mdio.c
@@ -162,7 +162,9 @@ static int xgmac_mdio_read(struct mii_bus *bus, int phy_id, int regnum)
162 162
163 /* Return all Fs if nothing was there */ 163 /* Return all Fs if nothing was there */
164 if (in_be32(&regs->mdio_stat) & MDIO_STAT_RD_ER) { 164 if (in_be32(&regs->mdio_stat) & MDIO_STAT_RD_ER) {
165 dev_err(&bus->dev, "MDIO read error\n"); 165 dev_err(&bus->dev,
166 "Error while reading PHY%d reg at %d.%d\n",
167 phy_id, dev_addr, regnum);
166 return 0xffff; 168 return 0xffff;
167 } 169 }
168 170