]> git.karo-electronics.de Git - linux-beck.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)
commit8fdade4be755af17a3d205d07f594f939f173504
tree84c4ae38f56f58c1c9dbc9af385845f9f1d6cc87
parente9fbdf176d2a7993b9d4c487b50c68d1c6019b2c
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