net: dsa: mv88e6xxx: Add support for bridge port locked mode
authorHans Schultz <schultz.hans@gmail.com>
Wed, 23 Feb 2022 10:16:49 +0000 (11:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2022 12:52:34 +0000 (12:52 +0000)
commit34ea415f927e7fb8e0d4e17c3c16aa3bb2510932
tree7c6c5b4c089df8b474ffad3537b5215b9ad7003d
parentb9e8b58fd2cb30cb6e01d72c7d32286810a9bca9
net: dsa: mv88e6xxx: Add support for bridge port locked mode

Supporting bridge ports in locked mode using the drop on lock
feature in Marvell mv88e6xxx switchcores is described in the
'88E6096/88E6097/88E6097F Datasheet', sections 4.4.6, 4.4.7 and
5.1.2.1 (Drop on Lock).

This feature is implemented here facilitated by the locked port flag.

Signed-off-by: Hans Schultz <schultz.hans+netdev@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/port.c
drivers/net/dsa/mv88e6xxx/port.h