mbox series

[0/4] net: mediatek: sgmii: add support to change interface parameter while running

Message ID 20220820224538.59489-1-lynxis@fe80.eu (mailing list archive)
Headers show
Series net: mediatek: sgmii: add support to change interface parameter while running | expand

Message

Alexander Couzens Aug. 20, 2022, 10:45 p.m. UTC
When connecting the SGMII interface to a 2.5gbit ethernet phy (e.g. rtl8221
or a SFP slot) the SGMII interface need to change the SGMII connection
parameters (speed, autoneg, duplex, ..) while running to match the phy speed.

Alexander Couzens (4):
  net: mediatek: sgmii: fix powering up the SGMII phy
  net: mediatek: sgmii: ensure the SGMII PHY is powered down on
    configuration
  net: mediatek: sgmii: mtk_pcs_setup_mode_an: don't rely on register
    defaults
  net: mediatek: sgmii: set the speed according to the phy interface in
    AN

 drivers/net/ethernet/mediatek/mtk_sgmii.c | 40 ++++++++++++++++-------
 1 file changed, 29 insertions(+), 11 deletions(-)