Re: [net-next PATCH v6 4/6] net: phy: introduce phy_find_by_mdio_handle()

2020-07-13 Thread Andy Shevchenko
On Mon, Jul 13, 2020 at 9:04 AM Calvin Johnson wrote: > On Sat, Jul 11, 2020 at 02:41:12PM -0700, Florian Fainelli wrote: > > On 7/10/2020 11:55 PM, Calvin Johnson wrote: ... > > > + err = fwnode_property_read_u32(fwnode, "phy-channel", &addr); > > > + if (err) > > > + return ERR_P

Re: [net-next PATCH v6 4/6] net: phy: introduce phy_find_by_mdio_handle()

2020-07-12 Thread Calvin Johnson
On Sat, Jul 11, 2020 at 02:41:12PM -0700, Florian Fainelli wrote: > > > On 7/10/2020 11:55 PM, Calvin Johnson wrote: > > The PHYs on an mdiobus are probed and registered using mdiobus_register(). > > Later, for connecting these PHYs to MAC, the PHYs registered on the > > mdiobus have to be refere

Re: [net-next PATCH v6 4/6] net: phy: introduce phy_find_by_mdio_handle()

2020-07-11 Thread Florian Fainelli
On 7/10/2020 11:55 PM, Calvin Johnson wrote: > The PHYs on an mdiobus are probed and registered using mdiobus_register(). > Later, for connecting these PHYs to MAC, the PHYs registered on the > mdiobus have to be referenced. > > For each MAC node, a property "mdio-handle" is used to reference t

[net-next PATCH v6 4/6] net: phy: introduce phy_find_by_mdio_handle()

2020-07-10 Thread Calvin Johnson
The PHYs on an mdiobus are probed and registered using mdiobus_register(). Later, for connecting these PHYs to MAC, the PHYs registered on the mdiobus have to be referenced. For each MAC node, a property "mdio-handle" is used to reference the MDIO bus on which the PHYs are registered. On getting h