]> git.baikalelectronics.ru Git - kernel.git/commit
net: marvell: mvpp2: clear flow control modes in 10G mode
authorRussell King <rmk+kernel@armlinux.org.uk>
Sat, 9 Feb 2019 16:06:51 +0000 (16:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Feb 2019 17:34:00 +0000 (09:34 -0800)
commit27020d9486bd0bc384cc9a89bfbdb1bfc16bda19
treecf3c01ba1e908e1034c4d1cf92d9c4f351fb314a
parente346ce2bb355c073996a9211d531402c68f92d92
net: marvell: mvpp2: clear flow control modes in 10G mode

When mvpp2 configures the flow control modes in mvpp2_xlg_config() for
10G mode, it only ever set the flow control enable bits.  There is no
mechanism to clear these bits, which means that userspace is unable to
use standard APIs to disable flow control (the only way is to poke the
register directly.)

Fix the missing bit clearance to allow flow control to be disabled.
This means that, by default, as there is no negotiation in 10G modes
with mvpp2, flow control is now disabled rather than being rx-only.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c