Commit ece578bc authored by Vladimir Oltean's avatar Vladimir Oltean Committed by David S. Miller

net: dsa: sja1105: SGMII and 2500base-x on the SJA1110 are 'special'

For the xMII Mode Parameters Table to be properly configured for SGMII
mode on SJA1110, we need to set the "special" bit, since SGMII is
officially bitwise coded as 0b0011 in SJA1105 (decimal 3, equal to
XMII_MODE_SGMII), and as 0b1011 in SJA1110 (decimal 11).
Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 27871359
...@@ -209,12 +209,14 @@ static int sja1105_init_mii_settings(struct sja1105_private *priv) ...@@ -209,12 +209,14 @@ static int sja1105_init_mii_settings(struct sja1105_private *priv)
goto unsupported; goto unsupported;
mii->xmii_mode[i] = XMII_MODE_SGMII; mii->xmii_mode[i] = XMII_MODE_SGMII;
mii->special[i] = true;
break; break;
case PHY_INTERFACE_MODE_2500BASEX: case PHY_INTERFACE_MODE_2500BASEX:
if (!priv->info->supports_2500basex[i]) if (!priv->info->supports_2500basex[i])
goto unsupported; goto unsupported;
mii->xmii_mode[i] = XMII_MODE_SGMII; mii->xmii_mode[i] = XMII_MODE_SGMII;
mii->special[i] = true;
break; break;
unsupported: unsupported:
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment