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

2018-03-13 Thread Brad Mouring
On Mon, Mar 12, 2018 at 03:30:53PM -0700, Florian Fainelli wrote: > On 03/12/2018 02:57 PM, Andrew Lunn wrote: > >> + /* attempt to find a phy-handle */ > >> + if (!(bp->phy_node = of_parse_phandle(np, "phy-handle", > >> 0))) { > >> + > >> +

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

2018-03-12 Thread Florian Fainelli
On 03/12/2018 02:57 PM, Andrew Lunn wrote: >> +/* attempt to find a phy-handle */ >> +if (!(bp->phy_node = of_parse_phandle(np, "phy-handle", >> 0))) { >> + >> +/* fallback to standard phy registration if no >> phy were >> +

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

2018-03-12 Thread Andrew Lunn
> + /* attempt to find a phy-handle */ > + if (!(bp->phy_node = of_parse_phandle(np, "phy-handle", > 0))) { > + > + /* fallback to standard phy registration if no > phy were > + * found during dt phy

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

2018-03-12 Thread Brad Mouring
This optional binding (as described in the ethernet DT bindings doc) directs the netdev to the phydev to use. This is useful for a phy chip that has >1 phy in it, and two netdevs are using the same phy chip (i.e. the second mac's phy lives on the first mac's MDIO bus) The devicetree snippet would