net: phy: mdio-bcm-unimac: Add debug print for PHY workaround
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 31 Jul 2017 19:04:24 +0000 (12:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Jul 2017 21:40:58 +0000 (14:40 -0700)
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>
drivers/net/phy/mdio-bcm-unimac.c

index 97cac10..4e52692 100644 (file)
@@ -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;