Re: [PATCH net-next] net: dsa: Allow compiling out legacy support

2017-12-01 Thread Florian Fainelli
On 12/01/2017 07:21 AM, Vivien Didelot wrote: > Hi Florian, > > Florian Fainelli writes: > >> +#if IS_ENABLED(CONFIG_NET_DSA_LEGACY) >> /* Legacy driver registration */ >> void register_switch_driver(struct dsa_switch_driver *type); >> void unregister_switch_driver(struct dsa_switch_driver

Re: [PATCH net-next] net: dsa: Allow compiling out legacy support

2017-12-01 Thread Vivien Didelot
Hi Florian, Florian Fainelli writes: > +#if IS_ENABLED(CONFIG_NET_DSA_LEGACY) > /* Legacy driver registration */ > void register_switch_driver(struct dsa_switch_driver *type); > void unregister_switch_driver(struct dsa_switch_driver *type); > struct mii_bus *dsa_host_dev_to_mii_bus(struct de

[PATCH net-next] net: dsa: Allow compiling out legacy support

2017-11-30 Thread Florian Fainelli
Introduce a configuration option: CONFIG_NET_DSA_LEGACY allowing to compile out support for the old platform device and Device Tree binding registration. Support for these configurations is scheduled to be removed in 4.17. Signed-off-by: Florian Fainelli --- include/net/dsa.h | 9 + ne