Skip to content

Commit

Permalink
net: phy: mdio-bcm-unimac: Add debug print for PHY workaround
Browse files Browse the repository at this point in the history
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: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Jul 31, 2017
1 parent d782f7c commit e23597f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/phy/mdio-bcm-unimac.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ static int unimac_mdio_reset(struct mii_bus *bus)
}

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);
}
}

return 0;
Expand Down

0 comments on commit e23597f

Please sign in to comment.