Re: [RFC PATCH 3/3] net: dsa: exit probe if no switch were found

2015-10-02 Thread Florian Fainelli
On 02/10/15 05:10, Neil Armstrong wrote: > On 10/01/2015 06:32 PM, Andrew Lunn wrote: >> On Thu, Oct 01, 2015 at 05:27:32PM +0200, Neil Armstrong wrote: >>> On 09/30/2015 10:21 AM, Neil Armstrong wrote: If no switch were found in dsa_setup_dst, return -ENODEV and exit the dsa_probe cleanl

Re: [RFC PATCH 3/3] net: dsa: exit probe if no switch were found

2015-10-02 Thread Neil Armstrong
On 10/01/2015 06:32 PM, Andrew Lunn wrote: > On Thu, Oct 01, 2015 at 05:27:32PM +0200, Neil Armstrong wrote: >> On 09/30/2015 10:21 AM, Neil Armstrong wrote: >>> If no switch were found in dsa_setup_dst, return -ENODEV and >>> exit the dsa_probe cleanly. > > ... > >> Couldn't we use the probe de

Re: [RFC PATCH 3/3] net: dsa: exit probe if no switch were found

2015-10-01 Thread Andrew Lunn
On Thu, Oct 01, 2015 at 05:27:32PM +0200, Neil Armstrong wrote: > On 09/30/2015 10:21 AM, Neil Armstrong wrote: > > If no switch were found in dsa_setup_dst, return -ENODEV and > > exit the dsa_probe cleanly. ... > Couldn't we use the probe defer mechanism here ? (until complete rework is > don

Re: [RFC PATCH 3/3] net: dsa: exit probe if no switch were found

2015-10-01 Thread Neil Armstrong
On 09/30/2015 10:21 AM, Neil Armstrong wrote: > If no switch were found in dsa_setup_dst, return -ENODEV and > exit the dsa_probe cleanly. > > Signed-off-by: Neil Armstrong > --- > net/dsa/dsa.c | 19 +++ > 1 file changed, 15 insertions(+), 4 deletions(-) > > diff --git a/net/ds

[RFC PATCH 3/3] net: dsa: exit probe if no switch were found

2015-09-30 Thread Neil Armstrong
If no switch were found in dsa_setup_dst, return -ENODEV and exit the dsa_probe cleanly. Signed-off-by: Neil Armstrong --- net/dsa/dsa.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 0c104af..6ae1ab9 100644 --- a/net/