Re: [PATCH net-next 6/8] MIPS: mscc: Add switch to ocelot

2018-03-24 Thread Andrew Lunn
On Fri, Mar 23, 2018 at 03:11:23PM -0700, Florian Fainelli wrote: > On 03/23/2018 03:06 PM, Andrew Lunn wrote: > >>> That is the trade off of having a standalone MDIO bus driver. Maybe > >>> add a phandle to the internal MDIO bus? The switch driver could then > >>> follow the phandle, and direct c

Re: [PATCH net-next 6/8] MIPS: mscc: Add switch to ocelot

2018-03-23 Thread Florian Fainelli
On 03/23/2018 03:06 PM, Andrew Lunn wrote: >>> That is the trade off of having a standalone MDIO bus driver. Maybe >>> add a phandle to the internal MDIO bus? The switch driver could then >>> follow the phandle, and direct connect the internal PHYs? >> >> This is more or less what patch 7 does, ri

Re: [PATCH net-next 6/8] MIPS: mscc: Add switch to ocelot

2018-03-23 Thread Andrew Lunn
> > That is the trade off of having a standalone MDIO bus driver. Maybe > > add a phandle to the internal MDIO bus? The switch driver could then > > follow the phandle, and direct connect the internal PHYs? > > This is more or less what patch 7 does, right? Patch 7 does it in DT. I'm suggesting

Re: [PATCH net-next 6/8] MIPS: mscc: Add switch to ocelot

2018-03-23 Thread Florian Fainelli
On 03/23/2018 02:33 PM, Andrew Lunn wrote: > On Fri, Mar 23, 2018 at 10:22:30PM +0100, Alexandre Belloni wrote: >> On 23/03/2018 at 14:17:48 -0700, Florian Fainelli wrote: >>> On 03/23/2018 01:11 PM, Alexandre Belloni wrote: + + phy0: ethernet-phy@0 { +

Re: [PATCH net-next 6/8] MIPS: mscc: Add switch to ocelot

2018-03-23 Thread Andrew Lunn
On Fri, Mar 23, 2018 at 10:22:30PM +0100, Alexandre Belloni wrote: > On 23/03/2018 at 14:17:48 -0700, Florian Fainelli wrote: > > On 03/23/2018 01:11 PM, Alexandre Belloni wrote: > > > + > > > + phy0: ethernet-phy@0 { > > > + reg = <0>; > > > +

Re: [PATCH net-next 6/8] MIPS: mscc: Add switch to ocelot

2018-03-23 Thread Alexandre Belloni
On 23/03/2018 at 14:17:48 -0700, Florian Fainelli wrote: > On 03/23/2018 01:11 PM, Alexandre Belloni wrote: > > + > > + phy0: ethernet-phy@0 { > > + reg = <0>; > > + }; > > + phy1: ethernet-phy@1 { > > +

Re: [PATCH net-next 6/8] MIPS: mscc: Add switch to ocelot

2018-03-23 Thread Florian Fainelli
On 03/23/2018 01:11 PM, Alexandre Belloni wrote: > Ocelot has an integrated switch, add support for it. > > Cc: James Hogan > Signed-off-by: Alexandre Belloni > --- > arch/mips/boot/dts/mscc/ocelot.dtsi | 84 > + > 1 file changed, 84 insertions(+) > > diff

[PATCH net-next 6/8] MIPS: mscc: Add switch to ocelot

2018-03-23 Thread Alexandre Belloni
Ocelot has an integrated switch, add support for it. Cc: James Hogan Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/ocelot.dtsi | 84 + 1 file changed, 84 insertions(+) diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mips/boot/dts/mscc