diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2014-06-24 12:18:08 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-25 08:31:26 +0200 |
commit | de20089ea81a99046b0f5a4bc80685c4f528244a (patch) | |
tree | 97b8825928a645515bd32aedf5c97a6331f2de0d | |
parent | 40d89c49777081ea88818610a575813d8a08e5c5 (diff) | |
download | barebox-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.c | 2 |
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++) |