]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: update OF PHY registeration
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 12 Mar 2014 17:47:40 +0000 (17:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Mar 2014 19:47:37 +0000 (15:47 -0400)
commit909a60fbd7e87e50b0d88463d4856b5f8f347c1f
treea83149a742f8add2192abf515df7035a9b743e8e
parentb3d0a0e1bd8ea9d31ab2b2fe3b6d6a3d55a8d0d0
sh_eth: update OF PHY registeration

If the sh_eth device is registered using OF, then the driver
should call of_mdiobus_register() to register the PHYs described
in the devicetree and then use of_phy_connect() to connect the
PHYs to the device.

This ensures that any PHYs registered in the device tree are
appropriately connected to the parent devices nodes so that
the PHY drivers can access their OF properties.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c