summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2014-06-24 12:18:08 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-06-25 08:31:26 +0200
commitde20089ea81a99046b0f5a4bc80685c4f528244a (patch)
tree97b8825928a645515bd32aedf5c97a6331f2de0d
parent40d89c49777081ea88818610a575813d8a08e5c5 (diff)
downloadbarebox-de20089ea81a99046b0f5a4bc80685c4f528244a.tar.gz
barebox-de20089ea81a99046b0f5a4bc80685c4f528244a.tar.xz
of: net: respect phy-connection-type property
ePAPR defines phy-connection-type as standard property for PHY interface between Ethernet device and PHY device. Add corresponding property check to of_get_phy_mode. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/of/of_net.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/of_net.c b/drivers/of/of_net.c
index 2bf05e2ba2..0320c1d4f5 100644
--- a/drivers/of/of_net.c
+++ b/drivers/of/of_net.c
@@ -44,6 +44,8 @@ int of_get_phy_mode(struct device_node *np)
err = of_property_read_string(np, "phy-mode", &pm);
if (err < 0)
+ err = of_property_read_string(np, "phy-connection-type", &pm);
+ if (err < 0)
return err;
for (i = 0; i < ARRAY_SIZE(phy_modes); i++)