summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-04-07 15:52:20 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-04-14 10:12:25 +0100
commitf315e40edd471091ca17367f59bb38e338374f28 (patch)
tree343d57c162ea88f2e8d7a9271325391c9814bf31 /net
parent748630e915d29ff5d75b73e0896429911e0ee6ba (diff)
net: mtk_eth_soc: correct 802.3z speed setting
Phylink does not guarantee that state->speed will be set correctly in the mac_config() call, so it's a bug that the driver makes use of it. Moreover, it is making use of it in a function that is only ever called for 1000BASE-X and 2500BASE-X which operate at a fixed speed which happens to be the same setting irrespective of the interface mode. We can simply remove the switch statement and just set the SGMII interface speed. Tested-by: Marek BehĂșn <kabel@kernel.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions