Re: [PATCH net v2] net: ag71xx: fix mdio subnode support

2019-10-01 Thread David Miller
From: Andrew Lunn Date: Tue, 1 Oct 2019 18:43:40 +0200 > On Tue, Oct 01, 2019 at 09:03:20AM -0700, David Miller wrote: >> From: Oleksij Rempel >> Date: Tue, 1 Oct 2019 08:41:47 +0200 >> >> > @@ -571,7 +571,9 @@ static int ag71xx_mdio_probe(struct ag71xx *ag) >> >msleep(200); >> >

Re: [PATCH net v2] net: ag71xx: fix mdio subnode support

2019-10-01 Thread Andrew Lunn
On Tue, Oct 01, 2019 at 09:03:20AM -0700, David Miller wrote: > From: Oleksij Rempel > Date: Tue, 1 Oct 2019 08:41:47 +0200 > > > @@ -571,7 +571,9 @@ static int ag71xx_mdio_probe(struct ag71xx *ag) > > msleep(200); > > } > > > > - err = of_mdiobus_register(mii_bus, np); > >

Re: [PATCH net v2] net: ag71xx: fix mdio subnode support

2019-10-01 Thread David Miller
From: Oleksij Rempel Date: Tue, 1 Oct 2019 08:41:47 +0200 > @@ -571,7 +571,9 @@ static int ag71xx_mdio_probe(struct ag71xx *ag) > msleep(200); > } > > - err = of_mdiobus_register(mii_bus, np); > + mnp = of_get_child_by_name(np, "mdio"); > + err =

[PATCH net v2] net: ag71xx: fix mdio subnode support

2019-10-01 Thread Oleksij Rempel
This patch is syncing driver with actual devicetree documentation: Documentation/devicetree/bindings/net/qca,ar71xx.txt |Optional subnodes: |- mdio : specifies the mdio bus, used as a container for phy nodes | according to phy.txt in the same directory The driver was working with fixed phy