diff options
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index d1d9d3cf9139..710679067594 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c | |||
@@ -2656,15 +2656,19 @@ static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port) | |||
2656 | return ret; | 2656 | return ret; |
2657 | } | 2657 | } |
2658 | 2658 | ||
2659 | /* Rate Control: disable ingress rate limiting. */ | ||
2659 | if (mv88e6xxx_6352_family(chip) || mv88e6xxx_6351_family(chip) || | 2660 | if (mv88e6xxx_6352_family(chip) || mv88e6xxx_6351_family(chip) || |
2660 | mv88e6xxx_6165_family(chip) || mv88e6xxx_6097_family(chip) || | 2661 | mv88e6xxx_6165_family(chip) || mv88e6xxx_6097_family(chip) || |
2661 | mv88e6xxx_6185_family(chip) || mv88e6xxx_6095_family(chip) || | ||
2662 | mv88e6xxx_6320_family(chip)) { | 2662 | mv88e6xxx_6320_family(chip)) { |
2663 | /* Rate Control: disable ingress rate limiting. */ | ||
2664 | ret = _mv88e6xxx_reg_write(chip, REG_PORT(port), | 2663 | ret = _mv88e6xxx_reg_write(chip, REG_PORT(port), |
2665 | PORT_RATE_CONTROL, 0x0001); | 2664 | PORT_RATE_CONTROL, 0x0001); |
2666 | if (ret) | 2665 | if (ret) |
2667 | return ret; | 2666 | return ret; |
2667 | } else if (mv88e6xxx_6185_family(chip) || mv88e6xxx_6095_family(chip)) { | ||
2668 | ret = _mv88e6xxx_reg_write(chip, REG_PORT(port), | ||
2669 | PORT_RATE_CONTROL, 0x0000); | ||
2670 | if (ret) | ||
2671 | return ret; | ||
2668 | } | 2672 | } |
2669 | 2673 | ||
2670 | /* Port Control 1: disable trunking, disable sending | 2674 | /* Port Control 1: disable trunking, disable sending |