]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl930x: combine USXGMII/XSGMII config
authorJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 18 Mar 2026 15:03:07 +0000 (15:03 +0000)
committerRobert Marko <robimarko@gmail.com>
Thu, 26 Mar 2026 09:53:46 +0000 (10:53 +0100)
commitc1feb4d79892347fe1b30b00a9d04532b01445a4
tree9fa58194f4cca629e4c65adeff40e159a3eebe5c
parentc9f5723558ccfc170cc4a263f68dfa5968c2defb
realtek: pcs: rtl930x: combine USXGMII/XSGMII config

Right now, the config sequences for XSGMII and USXGMII have been
stripped down to their essential parts. Still, they have redundancies.
The XSGMII sequences are 99% equal to the generic ANA_10G sequences
(except for a single write which is DFE/LEQ-related and changed during
calibration later anyway), thus we can drop them completely.

The USXGMII sequences contain the same sequences so they can be removed
there too, all being covered by applying the ANA_10G sequence for those
modes too. One different write (register [0x2e, 0x01]) is integrated into
the ANA_10G sequence since testing has shown that the value is either the
default for that register anyway, or set during SDK setup too for 10GR.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22582
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c