Thread (35 messages) flat view 35 messages, 5 authors, 2018-03-16

Re: [PATCH v3 net-next 3/4] net: macb: Add phy-handle DT support

From: Andrew Lunn <andrew@lunn.ch>
Date: 2018-03-12 17:59:56
Also in: linux-devicetree

quoted hunk ↗ jump to hunk
@@ -488,6 +488,9 @@ static int macb_mii_probe(struct net_device *dev)
 			}
 			bp->phy_node = of_node_get(np);
 		} else {
+			/* attempt to find a phy-handle */
+			bp->phy_node = of_parse_phandle(np, "phy-handle", 0);
+
Hi Brad

It seems like you should check the return value here, any only
continue with the fallback if there was not a phy-handle.
 			/* fallback to standard phy registration if no phy were
 			 * found during dt phy registration
 			 */
	 Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help