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 <[email protected]>
---
Cc: [email protected]
---
 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 2bf05e2ba21d..0320c1d4f50e 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++)
-- 
2.0.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to