]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mdio-bcm-unimac: handle broken turn-around for specific PHYs
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 10 Jun 2015 19:24:11 +0000 (12:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2015 07:32:21 +0000 (00:32 -0700)
commitaea4633cd526705c7e2ba2ea5bfcd2e8f124c2f7
tree108ee299f7ef4c18f115536c712b66369d6646c2
parent6e35f3e987f5eafda390c5bddd327c098bd6820f
net: phy: mdio-bcm-unimac: handle broken turn-around for specific PHYs

Some Ethernet PHYs/switches such as Broadcom's BCM53125 have a hardware bug
which makes them not release the MDIO line during turn-around time.  This gets
flagged by the UniMAC MDIO controller as a read failure, and we fail the read
transaction.

Check the MDIO bus phy_ignore_ta_mask bitmask for the PHY we are reading
from and if it is listed in this bitmask, ignore the read failure and
proceed with returning the data we read out of the controller.

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