]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb27616fd61a88e46fb320754f8fefc5a9ea522e0
tree87180c84eaafd9ee5dc56c021a3a3d72d0408f00
parent48319aa49aa51a7b9999cd8f6548f42379c2793e
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