ER-X-SFP - SFP (eth5) port has link-state (LED = lit), but swconfig says link: port:5 link:down

Yes and No.

Net-next driver which will be v5.4 has support for mt7628, mt7621, mt7622, mt7623 and mt7629, also PHYLINK API.
mt7628 is missing a esw/DSA driver in the kernel. But Stefan did make a first start with a dsa switch driver for mt7628. https://github.com/stroese/linux/blob/gardena-v5.2-ethernet-phy-v1-2019-07-10/drivers/net/dsa/mt7628.c

other issue with the upstream driver

  • TRGMII mode is not working on all devices. I got 2 devices (UBNT-ERX-SFP and MTC-WR1201).
  • UBNT-ERX-SFP works in TRGMII and RGMII mode, but MTC-WR1201 only works in RGMII mode with an extra patch. I am still working on that. But I think I am not on time to get is in the current net-next.
  • mt7621 now using QDMA for both TX/RX path. RX path has a silicon bug. So RX path should use PDMA.
  • mt7621 has performance issues. iperf from the device TX could reach 941mb/s but RX is stuck at around 300-500mbit.
  • No HWNAT support.

Net-next driver mt7530 switch:
Supports:

  • DSA
  • PHYLINK API
  • Port 5, so Port 0 / 4 can be used as WAN port on the 2nd GMAC or in case of UBNT-ERX-SFP port 5 is connected to SFP cage.

Backporting MT7530 is maybe a good start.

1 Like