Re: [PATCH 3/3] net: dsa: Initialize all CPU and enabled ports masks in dsa_ds_parse()

2017-06-02 Thread Vivien Didelot
Florian Fainelli writes: > There was no reason for duplicating the code that initializes > ds->enabled_port_mask in both dsa_parse_ports_dn() and > dsa_parse_ports(), instead move this to dsa_ds_parse() which is early > enough before ops->setup() has run. > > While at it, we can now make dsa_is_c

[PATCH 3/3] net: dsa: Initialize all CPU and enabled ports masks in dsa_ds_parse()

2017-06-02 Thread Florian Fainelli
There was no reason for duplicating the code that initializes ds->enabled_port_mask in both dsa_parse_ports_dn() and dsa_parse_ports(), instead move this to dsa_ds_parse() which is early enough before ops->setup() has run. While at it, we can now make dsa_is_cpu_port() check ds->cpu_port_mask whic