On Tue, Apr 21, 2020 at 03:51:47PM +0200, Andrew Lunn wrote: > On Tue, Apr 21, 2020 at 02:52:18PM +0200, Oleksij Rempel wrote: > > This function will be needed in tja11xx driver for secondary PHY > > support. > > > > Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> > > --- > > drivers/of/of_mdio.c | 73 ++++++++++++++++++++++++----------------- > > include/linux/of_mdio.h | 11 ++++++- > > 2 files changed, 52 insertions(+), 32 deletions(-) > > > > diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c > > index 8270bbf505fb..d9e637b624ce 100644 > > --- a/drivers/of/of_mdio.c > > +++ b/drivers/of/of_mdio.c > > @@ -60,39 +60,15 @@ static struct mii_timestamper *of_find_mii_timestamper(struct device_node *node) > > return register_mii_timestamper(arg.np, arg.args[0]); > > } > > > > -static int of_mdiobus_register_phy(struct mii_bus *mdio, > > - struct device_node *child, u32 addr) > > +int __of_mdiobus_register_phy(struct mii_bus *mdio, struct phy_device *phy, > > + struct device_node *child, u32 addr) > > { > > Hi Oleksij > > I would prefer a different name. __foo functions often indicate > locking is needed, or an internal API which should not be used except > internally. This is going to be an official API. Maybe call it > of_mdiobus_phy_device_register() ? ok, sounds good. I'll send new version Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature