mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 18:23:53 +08:00
net: dsa: mv88e6xxx: Fix masking of egress port
Add missing ~ to the usage of the mask.
Reported-by: Kevin Benson <Kevin.Benson@zii.aero>
Reported-by: Chris Healy <Chris.Healy@zii.aero>
Fixes: 5c74c54ce6
("net: dsa: mv88e6xxx: Split monitor port configuration")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ac004e8416
commit
3ee339eb28
@ -278,13 +278,13 @@ int mv88e6095_g1_set_egress_port(struct mv88e6xxx_chip *chip,
|
||||
switch (direction) {
|
||||
case MV88E6XXX_EGRESS_DIR_INGRESS:
|
||||
dest_port_chip = &chip->ingress_dest_port;
|
||||
reg &= MV88E6185_G1_MONITOR_CTL_INGRESS_DEST_MASK;
|
||||
reg &= ~MV88E6185_G1_MONITOR_CTL_INGRESS_DEST_MASK;
|
||||
reg |= port <<
|
||||
__bf_shf(MV88E6185_G1_MONITOR_CTL_INGRESS_DEST_MASK);
|
||||
break;
|
||||
case MV88E6XXX_EGRESS_DIR_EGRESS:
|
||||
dest_port_chip = &chip->egress_dest_port;
|
||||
reg &= MV88E6185_G1_MONITOR_CTL_EGRESS_DEST_MASK;
|
||||
reg &= ~MV88E6185_G1_MONITOR_CTL_EGRESS_DEST_MASK;
|
||||
reg |= port <<
|
||||
__bf_shf(MV88E6185_G1_MONITOR_CTL_EGRESS_DEST_MASK);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user