From de20089ea81a99046b0f5a4bc80685c4f528244a Mon Sep 17 00:00:00 2001 From: Sebastian Hesselbarth Date: Tue, 24 Jun 2014 12:18:08 +0200 Subject: [PATCH] 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 Signed-off-by: Sascha Hauer --- drivers/of/of_net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/of_net.c b/drivers/of/of_net.c index 2bf05e2ba..0320c1d4f 100644 --- a/drivers/of/of_net.c +++ b/drivers/of/of_net.c @@ -43,6 +43,8 @@ int of_get_phy_mode(struct device_node *np) int err, i; 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;