]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: force in-band autoneg on XGS1250-12 A1 10G PHYs 22690/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 30 Mar 2026 09:46:29 +0000 (09:46 +0000)
committerRobert Marko <robimarko@gmail.com>
Tue, 31 Mar 2026 10:54:57 +0000 (12:54 +0200)
In kernel 6.18, upstream added a change to the Aquantia PHY driver which
reports autoneg and inband capabilities as the PHY supports it, and
configures it accordingly in the PHY [1]. Due to how phylink works, it
then decides to turn off in-band signalling and prefer outband signalling
via MDIO.

We do not fully support running a USXGMII link with disabled
autonegotiation which leads to a non-working link between RTL93xx switch
and Aquantia PHYs running on USXGMII. To workaround this issue until
this support is added (if it is properly supported by the hardware),
force the Aquantia PHYs on affected devices to use inband signalling
instead of outband signalling. To achieve this, one can add

> managed = "in-band-status";

to the port definition in the DTS.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5d59109d47c00e3e98aba612529b3871e69efb9d

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22690
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12-a1.dts

index ca61c675cf05d33a6335fbbe0c4042d842a28732..62ce19730eaf19ff19a9dc2ac3254db797d4c212 100644 (file)
                #thermal-sensor-cells = <0>;
        };
 };
+
+&port24 {
+       managed = "in-band-status";
+};
+
+&port25 {
+       managed = "in-band-status";
+};
+
+&port26 {
+       managed = "in-band-status";
+};