net: dsa: rzn1-a5psw: use a5psw_reg_rmw() to modify flooding resolution
authorClément Léger <clement.leger@bootlin.com>
Thu, 10 Aug 2023 09:36:49 +0000 (11:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2023 10:58:36 +0000 (11:58 +0100)
commit6cf30fdd7b06515db9188ace84d2497f390f4c37
treed4816d397fdc6fc89e937615a1f88f46337fc6e1
parent61f98da4698407d042128396297d7f724cfa1424
net: dsa: rzn1-a5psw: use a5psw_reg_rmw() to modify flooding resolution

.port_bridge_flags will be added and allows to modify the flood mask
independently for each port. Keeping the existing bridged_ports write
in a5psw_flooding_set_resolution() would potentially messed up this.
Use a read-modify-write to set that value and move bridged_ports
handling in bridge_port_join/leave.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/rzn1_a5psw.c