aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell/mvpp2
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-07-20 10:57:48 +0100
committerDavid S. Miller <davem@davemloft.net>2021-07-20 07:19:19 -0700
commitc762b7fac1b249a9ce355fc5aa326442178a978d (patch)
treefc36847a505e20b494d0eef41c33d8ef5cadc172 /drivers/net/ethernet/marvell/mvpp2
parentnet: ipv4: add capability check for net administration (diff)
downloadlinux-dev-c762b7fac1b249a9ce355fc5aa326442178a978d.tar.xz
linux-dev-c762b7fac1b249a9ce355fc5aa326442178a978d.zip
net: mvneta: deny disabling autoneg for 802.3z modes
The documentation for Armada 38x says: Bit 2 Field InBandAnEn In-band Auto-Negotiation enable. ... When <PortType> = 1 (1000BASE-X) this field must be set to 1. We presently ignore whether userspace requests autonegotiation or not through the ethtool ksettings interface. However, we have some network interfaces that wish to do this. To offer a consistent API across network interfaces, deny the ability to disable autonegotiation on mvneta hardware when in 1000BASE-X and 2500BASE-X. This means the only way to switch between 2500BASE-X and 1000BASE-X on SFPs that support this will be: # ethtool -s ethX advertise 0x20000002000 # 1000BASE-X Pause # ethtool -s ethX advertise 0xa000 # 2500BASE-X Pause Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Acked-by: Marek BehĂșn <kabel@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvpp2')
0 files changed, 0 insertions, 0 deletions