Commit e23597f7 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: phy: mdio-bcm-unimac: Add debug print for PHY workaround

In order to be stricly identical to what bcmgenet does, add a debug
print when a PHY workaround during bus->reset() is executed. Preliminary
change to moving bcmgenet towards mdio-bcm-unimac.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d782f7c9
...@@ -154,8 +154,10 @@ static int unimac_mdio_reset(struct mii_bus *bus) ...@@ -154,8 +154,10 @@ static int unimac_mdio_reset(struct mii_bus *bus)
} }
for (addr = 0; addr < PHY_MAX_ADDR; addr++) { for (addr = 0; addr < PHY_MAX_ADDR; addr++) {
if (read_mask & 1 << addr) if (read_mask & 1 << addr) {
dev_dbg(&bus->dev, "Workaround for PHY @ %d\n", addr);
mdiobus_read(bus, addr, MII_BMSR); mdiobus_read(bus, addr, MII_BMSR);
}
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment