of: mdio: Add a "broken-turn-around" property
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 12 May 2015 17:33:25 +0000 (10:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 May 2015 17:40:55 +0000 (13:40 -0400)
commitab6016e0c134c3a564e6750f5b246ba17ada4686
tree6fbd6275a5fb0a7acd330ffd46dfd79a22fd7215
parent922f2dd1b65a888e34c472979460dc23211750a2
of: mdio: Add a "broken-turn-around" property

Some Ethernet PHY devices/switches may not properly release the MDIO bus
during turn-around time, and fail to drive it low, which can be seen by
some controllers as a read failure, while the data clocked in is still
correct.

Add a boolean property "broken-turn-around" which is parsed by the
generic MDIO bus probing code and will set the corresponding bit in the
MDIO bus phy_ignore_ta_mask bitmask for MDIO bus drivers to utilize that
information.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/phy.txt
drivers/of/of_mdio.c