]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl93xx: configure in-band AN advertisement 21869/head
authorJan Hoffmann <jan@3e8.eu>
Wed, 4 Feb 2026 15:22:06 +0000 (16:22 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 6 Feb 2026 09:23:43 +0000 (10:23 +0100)
commite3be4654a1f405985964d8b5e5add3c149f55fba
treefb49a479069c4dd739391436a6679a93bc5e2647
parent6dae444ee94d05972c842e765daf01de0fe50ce5
realtek: pcs: rtl93xx: configure in-band AN advertisement

Enabling and disabling in-band auto-negotation is already supported on
RTL93xx. However, so far the advertisement is left unchanged at the
default of 0x1a0 (full duplex + pause + asymmetric pause).

Instead, set the advertisement to reflect the current configuration for
1000Base-X and 2500Base-X. Nothing needs to be done for SGMII, as the
advertisement register is ignored in that case.

Testing shows that negotiation of flow control works for 1000Base-X and
2500Base-X (tested with RTL930x on both ends of the link).

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/21869
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c