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))) {
> >> +
> >> +
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
>> +
> + /* 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
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