Re: [PATCH RFC v2 00/32] Make DSA switches linux devices.

2016-03-14 Thread Andrew Lunn
On Mon, Mar 14, 2016 at 12:36:18PM -0700, Florian Fainelli wrote: > On 12/03/16 09:08, Andrew Lunn wrote: > >> [snip] > >> > >>> > >>> The third switch is as you would expect, dsa,member = <0 2>; > >> > >> I like that representation. > >> > > > > ... > > > >> So does that mean you agree we do not

Re: [PATCH RFC v2 00/32] Make DSA switches linux devices.

2016-03-14 Thread Florian Fainelli
On 12/03/16 09:08, Andrew Lunn wrote: >> [snip] >> >>> >>> The third switch is as you would expect, dsa,member = <0 2>; >> >> I like that representation. >> > > ... > >> So does that mean you agree we do not need the DSA platform device >> anymore :)? > > It looks like it can be done witho

Re: [PATCH RFC v2 00/32] Make DSA switches linux devices.

2016-03-12 Thread Vivien Didelot
Hi Andrew, Florian, Andrew Lunn writes: > It probably means we need to turn slave.c and parts of dsa.c into a > library. Add a new dsa_v2.c file, containing the new binding > code. With things like having the switch devices instantiate there own > MDIO bus, fixed phys on a compatible MDIO bus re

Re: [PATCH RFC v2 00/32] Make DSA switches linux devices.

2016-03-12 Thread Andrew Lunn
> [snip] > > > > > The third switch is as you would expect, dsa,member = <0 2>; > > I like that representation. > ... > So does that mean you agree we do not need the DSA platform device > anymore :)? It looks like it can be done without the DSA platform device. My previous approach was to keep

Re: [PATCH RFC v2 00/32] Make DSA switches linux devices.

2016-03-11 Thread Florian Fainelli
On 03/03/16 12:27, Andrew Lunn wrote: >> - first of all, the original design around the special platform device >> did not allow multiple switch trees within the same system to coexist >> (dsa platform device were not numbered (id = -1)), but such a thing >> could exist and is desirable, you could

Re: [PATCH RFC v2 00/32] Make DSA switches linux devices.

2016-03-03 Thread Andrew Lunn
> - first of all, the original design around the special platform device > did not allow multiple switch trees within the same system to coexist > (dsa platform device were not numbered (id = -1)), but such a thing > could exist and is desirable, you could have a single switch hanging off > eth0, a

Re: [PATCH RFC v2 00/32] Make DSA switches linux devices.

2016-03-03 Thread Florian Fainelli
Hi Andrew, On 28/02/16 08:41, Andrew Lunn wrote: > This is the second RFC for rearchitecturing how DSA devices are > probed. This patchset allows switches to be linux devices, probed by > the ususal mechanism for whatever bus they hang off. They then > register with the DSA core. > > DSA has been

[PATCH RFC v2 00/32] Make DSA switches linux devices.

2016-02-28 Thread Andrew Lunn
This is the second RFC for rearchitecturing how DSA devices are probed. This patchset allows switches to be linux devices, probed by the ususal mechanism for whatever bus they hang off. They then register with the DSA core. DSA has been limited to devices which hang off an MDIO bus, or with a bit