summaryrefslogtreecommitdiff
path: root/arch/ia64
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-03-13 10:48:32 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-06-29 14:23:11 +0100
commit888e66c0107c0788e6bdd3fae0f196a160203bb7 (patch)
tree59d0519425703dd09cea3ed09cdbb8fd652820a0 /arch/ia64
parentb17af27455e9e4da8c02a6a47de7a3e77c0f19be (diff)
net: mtk_eth_soc: use resolved link config for PCS PHY
The SGMII PCS PHY needs to be updated with the link configuration in the mac_link_up() call rather than in mac_config(). However, mtk_sgmii_setup_mode_force() programs the SGMII block during mac_config() when using 802.3z interface modes with the link configuration. Split that functionality from mtk_sgmii_setup_mode_force(), moving it to a new mtk_sgmii_link_up() function, and call it from mac_link_up(). This does not look correct to me: 802.3z modes operate at a fixed speed. The contents of mtk_sgmii_link_up() look more appropriate for SGMII mode, but the original code definitely did not call mtk_sgmii_setup_mode_force() for SGMII mode but only 802.3z mode. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/ia64')
0 files changed, 0 insertions, 0 deletions