]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: SGMII and 2500base-x on the SJA1110 are 'special'
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 11 Jun 2021 20:05:30 +0000 (23:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 20:43:56 +0000 (13:43 -0700)
commite27fb5319769f559fdc8f45f20bd49d52d2afe45
tree4f33938db7e26e19ef940c207fa454d4b6543c1b
parentc11e8449ade60530e37e313f4ce0d7ba302b5bf8
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: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c