]> git.baikalelectronics.ru Git - kernel.git/commit
net: of_mdio: parse "max-speed" property to set PHY supported features
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 5 Dec 2013 22:52:14 +0000 (14:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2013 19:57:21 +0000 (14:57 -0500)
commitc97351595154ff7cb0b4b8186b8ab80264eb3530
tree84c4ae38f56f58c1c9dbc9af385845f9f1d6cc87
parent8eef044806aa73cc6c806d98234556cfbf1b2b31
net: of_mdio: parse "max-speed" property to set PHY supported features

The "max-speed" property is defined per the ePAPR specification to
express the maximum speed a PHY supports. Use that property, if present
to set the phydev->supported features which properly restricts the PHY
within the range of defined speeds.

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