Re: [PATCH RFC 00/28] DSA: Restructure probing

2015-12-25 Thread Andrew Lunn
> > One of my aims is to abstract away the MDIO bus from DSA. How you talk > > to the switch is a switch device property. SF2 has a different way to > > talk to the switch, memory mapped IO, etc. > > I appreciate you trying to see my point of view and mentioning the > driver that I care about,

Re: [PATCH RFC 00/28] DSA: Restructure probing

2015-12-25 Thread Andrew Lunn
> I am not really questioning whether the abstraction is working, this > clearly does, what I am wondering is if the use of the component > framework requires us to have master and slaves be implemented as strict > platform devices, or if we have a choice in how we mix things together, > like

Re: [PATCH RFC 00/28] DSA: Restructure probing

2015-12-25 Thread Florian Fainelli
Le 25/12/2015 03:31, Andrew Lunn a écrit : >>> One of my aims is to abstract away the MDIO bus from DSA. How you talk >>> to the switch is a switch device property. SF2 has a different way to >>> talk to the switch, memory mapped IO, etc. >> >> I appreciate you trying to see my point of view and

Re: [PATCH RFC 00/28] DSA: Restructure probing

2015-12-24 Thread Florian Fainelli
Le 24/12/2015 04:58, Andrew Lunn a écrit : >> I do not think you need the platform device because ultimately what the >> DSA platform device does is bind some data to the master network device >> the DSA switch tree is hanging off. Sure you need some piece of code >> that is resident in kernel or

Re: [PATCH RFC 00/28] DSA: Restructure probing

2015-12-24 Thread Andrew Lunn
> I do not think you need the platform device because ultimately what the > DSA platform device does is bind some data to the master network device > the DSA switch tree is hanging off. Sure you need some piece of code > that is resident in kernel or module space to be able to parse and > allocate

Re: [PATCH RFC 00/28] DSA: Restructure probing

2015-12-23 Thread Florian Fainelli
Le 23/12/2015 14:33, Andrew Lunn a écrit : > On Wed, Dec 23, 2015 at 12:44:59PM -0800, Florian Fainelli wrote: >> Hi Andrew, >> >> Le 23/12/2015 04:56, Andrew Lunn a écrit : >>> As noted in Documentation/networking/dsa/dsa.txt, the current DSA >>> architecture has a few architecture problems: >>>

Re: [PATCH RFC 00/28] DSA: Restructure probing

2015-12-23 Thread Florian Fainelli
Hi Andrew, Le 23/12/2015 04:56, Andrew Lunn a écrit : > As noted in Documentation/networking/dsa/dsa.txt, the current DSA > architecture has a few architecture problems: > > DSA is implemented as a DSA platform device driver which is convenient because > it will register the entire DSA switch

Re: [PATCH RFC 00/28] DSA: Restructure probing

2015-12-23 Thread Andrew Lunn
On Wed, Dec 23, 2015 at 12:44:59PM -0800, Florian Fainelli wrote: > Hi Andrew, > > Le 23/12/2015 04:56, Andrew Lunn a écrit : > > As noted in Documentation/networking/dsa/dsa.txt, the current DSA > > architecture has a few architecture problems: > > > > DSA is implemented as a DSA platform

[PATCH RFC 00/28] DSA: Restructure probing

2015-12-23 Thread Andrew Lunn
As noted in Documentation/networking/dsa/dsa.txt, the current DSA architecture has a few architecture problems: DSA is implemented as a DSA platform device driver which is convenient because it will register the entire DSA switch tree attached to a master network device in one-shot, facilitating