]> git.baikalelectronics.ru Git - kernel.git/commit
net: of_mdio: add of_mdiobus_link_phydev()
authorDaniel Mack <zonque@gmail.com>
Sat, 24 May 2014 07:34:26 +0000 (09:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 May 2014 22:23:29 +0000 (15:23 -0700)
commit095ab1c068dd3e518491b05abe498b54213b71d0
tree9dbea82327ba7dbd59d840da6ac29e2a13b92097
parent2ba206ab530e363ce98c1de335ec732e02907748
net: of_mdio: add of_mdiobus_link_phydev()

Add a function to walk the list of subnodes of a mdio bus and look for
a node that matches the phy's address with its 'reg' property. If found,
set the of_node pointer for the phy. This allows auto-probed pyh
devices to be augmented by information passed in via DT.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c
drivers/of/of_mdio.c
include/linux/of_mdio.h