Re: [net-next PATCH v2 04/14] net: phy: Introduce fwnode_get_phy_id()

2020-12-17 Thread Andy Shevchenko
On Thu, Dec 17, 2020 at 10:28 AM Calvin Johnson wrote: > On Tue, Dec 15, 2020 at 07:28:10PM +0200, Andy Shevchenko wrote: > > On Tue, Dec 15, 2020 at 6:44 PM Calvin Johnson > > wrote: ... > > > + if (sscanf(cp, "ethernet-phy-id%4x.%4x", &upper, &lower) == 2) { > >*phy_id = ((uppe

Re: [net-next PATCH v2 04/14] net: phy: Introduce fwnode_get_phy_id()

2020-12-17 Thread Calvin Johnson
On Tue, Dec 15, 2020 at 07:28:10PM +0200, Andy Shevchenko wrote: > On Tue, Dec 15, 2020 at 6:44 PM Calvin Johnson > wrote: > > > > Extract phy_id from compatible string. This will be used by > > fwnode_mdiobus_register_phy() to create phy device using the > > phy_id. > > ... > > > + if (ss

Re: [net-next PATCH v2 04/14] net: phy: Introduce fwnode_get_phy_id()

2020-12-15 Thread Andy Shevchenko
On Tue, Dec 15, 2020 at 6:44 PM Calvin Johnson wrote: > > Extract phy_id from compatible string. This will be used by > fwnode_mdiobus_register_phy() to create phy device using the > phy_id. ... > + if (sscanf(cp, "ethernet-phy-id%4x.%4x", &upper, &lower) == 2) { > + *phy_id

[net-next PATCH v2 04/14] net: phy: Introduce fwnode_get_phy_id()

2020-12-15 Thread Calvin Johnson
Extract phy_id from compatible string. This will be used by fwnode_mdiobus_register_phy() to create phy device using the phy_id. Signed-off-by: Calvin Johnson --- Changes in v2: None drivers/net/phy/phy_device.c | 21 + include/linux/phy.h | 5 + 2 files chang