]> git.baikalelectronics.ru Git - kernel.git/commit
net: of_mdio: fix behavior on missing phy device
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Mon, 6 May 2013 23:49:31 +0000 (23:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 May 2013 20:13:29 +0000 (13:13 -0700)
commit12d18e2b3ac7d70eaa160929a2b2310876bce67e
treec3c00dafaeaa95f78a3296f2cbd58bba92dd6613
parent7b26eee5ab3c65aa9a0c5ef1f316ec2561c417c1
net: of_mdio: fix behavior on missing phy device

of_mdiobus_register creates a phy_device even if get_phy_device failed
to create it previously. This causes indefinite polling on non-existent
PHYs. This fix makes of_mdio_register rely on get_phy_device to
properly create the device or fail otherwise.

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