diff options
author | Antoine Tenart <antoine.tenart@bootlin.com> | 2019-03-01 11:52:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-01 23:23:35 -0800 |
commit | 7409e66e9eee89f75d6eec6142279146f0999977 (patch) | |
tree | a896f243033f0e3797bc13de5c547d6b63d165ee /drivers/net/ethernet/marvell/mvpp2/mvpp2.h | |
parent | net: mvpp2: reset the MACs when reconfiguring a port (diff) | |
download | wireguard-linux-7409e66e9eee89f75d6eec6142279146f0999977.tar.xz wireguard-linux-7409e66e9eee89f75d6eec6142279146f0999977.zip |
net: mvpp2: set the XPCS and MPCS in reset when not used
This patch sets both the XPCS and MPCS blocks in reset when they aren't
used. This is done both at boot time and when reconfiguring a port mode.
The advantage now is that only the PCS used is set out of reset when the
port is configured (10GKR uses the MCPS while RXAUI uses the XPCS).
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvpp2/mvpp2.h')
-rw-r--r-- | drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2.h b/drivers/net/ethernet/marvell/mvpp2/mvpp2.h index c9edeac9ec01..ff0f4c503f53 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2.h +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2.h @@ -483,6 +483,7 @@ /* XPCS registers. PPv2.2 only */ #define MVPP22_XPCS_BASE(port) (0x7400 + (port) * 0x1000) #define MVPP22_XPCS_CFG0 0x0 +#define MVPP22_XPCS_CFG0_RESET_DIS BIT(0) #define MVPP22_XPCS_CFG0_PCS_MODE(n) ((n) << 3) #define MVPP22_XPCS_CFG0_ACTIVE_LANE(n) ((n) << 5) |