1 From ccdfd293f9e948f0f62ac4e9924d72539a4e81ee Mon Sep 17 00:00:00 2001
2 From: Mantas Pucka <mantas@8devices.com>
3 Date: Mon, 2 Jun 2025 17:19:45 +0300
4 Subject: [PATCH] net: pcs: ipq-uniphy: keep autoneg enabled in SGMII mode
6 For PHYs that don't use in-band-status (e.g. 2.5G PHY swiching between
7 SGMII and 2500base-x), SGMII autoneg still must be enabled. Only mode
8 that should use forced speed is 1000base-x
10 Signed-off-by: Mantas Pucka <mantas@8devices.com>
12 drivers/net/pcs/pcs-qcom-ipq9574.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 --- a/drivers/net/pcs/pcs-qcom-ipq9574.c
16 +++ b/drivers/net/pcs/pcs-qcom-ipq9574.c
17 @@ -431,7 +431,7 @@ static int ipq_pcs_config_sgmii(struct i
18 /* Nothing to do here as in-band autoneg mode is enabled
19 * by default for each PCS MII port.
21 - if (neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED)
22 + if (interface != PHY_INTERFACE_MODE_1000BASEX)
25 /* Set force speed mode */