mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] net: cpsw: support "phy-handle" and deprecate "phy_id"
@ 2018-11-19 15:25 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2018-11-19 15:25 UTC (permalink / raw)
  To: Barebox List

Upstream dts files changed to the generic binding for mii phys, so we
have to support it in barebox aswell. The barebox internal device trees
haven't been changed, so support them until all have changed. We print
a warning to add some motivation to change.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/net/cpsw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c
index c6fc21dc54..7ee2f3a4e1 100644
--- a/drivers/net/cpsw.c
+++ b/drivers/net/cpsw.c
@@ -1093,8 +1093,8 @@ static int cpsw_probe_dt(struct cpsw_priv *priv)
 
 			if (!of_find_node_by_name(child, "fixed-link")) {
 				ret = of_property_read_u32_array(child, "phy_id", phy_id, 2);
-				if (ret)
-					return ret;
+				if (!ret)
+					dev_warn(dev, "phy_id is deprecated, use phy-handle\n")
 			}
 
 			slave->dev.device_node = child;
-- 
2.19.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-19 15:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-19 15:25 [PATCH] net: cpsw: support "phy-handle" and deprecate "phy_id" Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox