]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/of/of_mdio.c
net: of_mdio: scan mdiobus for PHYs without reg property
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sun, 7 Apr 2013 01:09:48 +0000 (01:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2013 20:55:26 +0000 (16:55 -0400)
commit779d835e7eee114f9bfdf7401d1efcf2d53baccf
tree3bf252e7d10f8bd8b86de41a4ee61abdeb597d46
parent3d604da1e9547c09c9dcc0ee443c306c9ae1a480
net: of_mdio: scan mdiobus for PHYs without reg property

Using DT for mdiobus and ethernet-phy requires to know the PHY address, which
is hard to guess if you don't know it. This patch extends of_mdiobus_register
to scan mdiobus for PHYs if reg property of the corresponding node is not set.
This also allows to have phy nodes in SoC DT files where the reg property can
be overwritten in the board file later. To encourage people to finally set the
actual phy address, the mdiobus scan is noisier than required.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c