diff options
author | DENG Qingfang <dqfext@gmail.com> | 2021-08-04 00:04:03 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-04 10:30:00 +0100 |
commit | a9e3f62dff3c29b0bca86cb188e61d97be84c087 (patch) | |
tree | 88071e847bd8830428f2ca5bea4234dc5cc3bc38 /drivers/net/dsa/mt7530.c | |
parent | 6087175b7991a90c29269be26506f905104d7f12 (diff) |
net: dsa: mt7530: set STP state on filter ID 1
As filter ID 1 is the only one used for bridges, set STP state on it.
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mt7530.c')
-rw-r--r-- | drivers/net/dsa/mt7530.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index 606a9f4db579..9b39ccd9dd4c 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -1147,7 +1147,8 @@ mt7530_stp_state_set(struct dsa_switch *ds, int port, u8 state) break; } - mt7530_rmw(priv, MT7530_SSP_P(port), FID_PST_MASK, stp_state); + mt7530_rmw(priv, MT7530_SSP_P(port), FID_PST_MASK(FID_BRIDGED), + FID_PST(FID_BRIDGED, stp_state)); } static int |