aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Chevallier <[email protected]>2022-11-25 14:18:00 +0100
committerJakub Kicinski <[email protected]>2022-11-29 20:29:55 -0800
commitb4a7bf9f5bb8e6b21d728d00dc3afe9fbee2420c (patch)
tree248ec452c03c95807115b13e3208a4d5d9dad18a
parentd1a0ff5ff9efba55cc39ca520ba076943cd9a425 (diff)
net: pcs: altera-tse: don't set the speed for 1000BaseX
When disabling the SGMII mode bit, the PCS defaults to 1000BaseX mode. In that mode, we don't need to set the speed since it's always 1000Mbps. Signed-off-by: Maxime Chevallier <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r--drivers/net/pcs/pcs-altera-tse.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/pcs/pcs-altera-tse.c b/drivers/net/pcs/pcs-altera-tse.c
index e86cadc391e8..be65271ff5de 100644
--- a/drivers/net/pcs/pcs-altera-tse.c
+++ b/drivers/net/pcs/pcs-altera-tse.c
@@ -102,7 +102,6 @@ static int alt_tse_pcs_config(struct phylink_pcs *pcs, unsigned int mode,
if_mode |= PCS_IF_MODE_USE_SGMII_AN | PCS_IF_MODE_SGMII_ENA;
} else if (interface == PHY_INTERFACE_MODE_1000BASEX) {
if_mode &= ~(PCS_IF_MODE_USE_SGMII_AN | PCS_IF_MODE_SGMII_ENA);
- if_mode |= PCS_IF_MODE_SGMI_SPEED_1000;
}
ctrl |= (BMCR_SPEED1000 | BMCR_FULLDPLX | BMCR_ANENABLE);