net: phy: bcm7xxx: workaround MDIO management controller initial read
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 26 Jun 2015 17:39:04 +0000 (10:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jun 2015 03:28:20 +0000 (20:28 -0700)
commit8e346e1594bab6c06b6b4d2938c881729b03041d
tree87180c84eaafd9ee5dc56c021a3a3d72d0408f00
parent8031612d7fa8e49589a91da238a93a067826c668
net: phy: bcm7xxx: workaround MDIO management controller initial read

The initial MDIO read or write towards the BCM7xxx integrated PHY may
fail, workaround this by inserting a dummy MII_BMSR read to force the
MDIO management controller to see at least one valid transaction and get
out of stuck state out of reset.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm7xxx.c