Re: [PATCH net] net: dsa: Initialize ds->cpu_port_mask earlier

2017-07-25 Thread Sean Wang
Hi, Florian the solution is better and also can fix the problem I originally reported. Thank for your immediate help :-) Sean On Mon, 2017-07-24 at 10:49 -0700, Florian Fainelli wrote: > The mt7530 driver has its dsa_switch_ops::get_tag_protocol function > check ds->cpu_port_mask to issue a

Re: [PATCH net] net: dsa: Initialize ds->cpu_port_mask earlier

2017-07-24 Thread David Miller
From: Florian Fainelli Date: Mon, 24 Jul 2017 10:49:23 -0700 > The mt7530 driver has its dsa_switch_ops::get_tag_protocol function > check ds->cpu_port_mask to issue a warning in case the configured CPU > port is not capable of supporting tags. > > After commit

[PATCH net] net: dsa: Initialize ds->cpu_port_mask earlier

2017-07-24 Thread Florian Fainelli
The mt7530 driver has its dsa_switch_ops::get_tag_protocol function check ds->cpu_port_mask to issue a warning in case the configured CPU port is not capable of supporting tags. After commit 14be36c2c96c ("net: dsa: Initialize all CPU and enabled ports masks in dsa_ds_parse()") we slightly