net: dsa: mv88e6xxx: add port mask helper
Add a mv88e6xxx_port_mask() helper to get the bitmask of ports in a switch chip, that will be used in several features. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

父節點
0f230ca940
當前提交
4d294af2cd
@@ -539,7 +539,7 @@ int mv88e6351_port_set_egress_unknowns(struct mv88e6xxx_chip *chip, int port,
|
||||
|
||||
int mv88e6xxx_port_set_vlan_map(struct mv88e6xxx_chip *chip, int port, u16 map)
|
||||
{
|
||||
const u16 mask = GENMASK(mv88e6xxx_num_ports(chip) - 1, 0);
|
||||
const u16 mask = mv88e6xxx_port_mask(chip);
|
||||
u16 reg;
|
||||
int err;
|
||||
|
||||
|
Reference in New Issue
Block a user