diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-06-06 01:17:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-06 23:04:29 +0300 |
commit | 5461bd41fd93829fdd726c01f43799c743aba9a0 (patch) | |
tree | a317dd1bfa989fca900636427bc9954d3a2ff40c /drivers/net | |
parent | 286556c0b63a91d48770d5979e6653656235dbb0 (diff) | |
download | linux-5461bd41fd93829fdd726c01f43799c743aba9a0.tar.xz |
net: dsa: mv88e6xxx: fix 6085 frame mode masking
The register bits used for the frame mode were masked with DSA (0x1)
instead of the mask value (0x3) in the 6085 implementation of
port_set_frame_mode. Fix this.
Fixes: 56995cbc3540 ("net: dsa: mv88e6xxx: Refactor CPU and DSA port setup")
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/port.c b/drivers/net/dsa/mv88e6xxx/port.c index 360c77854f2a..3719ece60c61 100644 --- a/drivers/net/dsa/mv88e6xxx/port.c +++ b/drivers/net/dsa/mv88e6xxx/port.c @@ -451,7 +451,7 @@ int mv88e6085_port_set_frame_mode(struct mv88e6xxx_chip *chip, int port, if (err) return err; - reg &= ~PORT_CONTROL_FRAME_MODE_DSA; + reg &= ~PORT_CONTROL_FRAME_MASK; switch (mode) { case MV88E6XXX_FRAME_MODE_NORMAL: |