mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2026-06-11 06:37:26 -04:00
RTL83xx uses the BMCR and ADVERTISE registers like RTL93xx to configure in-band auto-negotiation. Split out the common parts as a new generic implementation and use it for RTL83xx. RTL93xx retains its own variant of set_autoneg to support XSGMII, but calls into the generic version for all other modes. Tested 1000Base-X auto-negotiation on HPE 1920-8G (RTL8380). Also tested HPE 1920-24G (RTL8382) and HPE-1920-48G (RTL8393) to make sure this does not affect PHY ports. Signed-off-by: Jan Hoffmann <jan@3e8.eu> Link: https://github.com/openwrt/openwrt/pull/21934 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>