]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl838x: merge and simplify patching 23741/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sat, 6 Jun 2026 21:03:07 +0000 (21:03 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Thu, 11 Jun 2026 18:27:30 +0000 (20:27 +0200)
commit8f23d9765035b51a71eb9616b8b99bf1441f4ec4
treeb92cad29acf8373fa63e499fd5484752057ad571
parent5c9f370a47855a75edf79edd3a23f8d0bc8a2755
realtek: pcs: rtl838x: merge and simplify patching

Reduce the per-SerDes patching to a per-mode patching since they share a
lot of similarities, especially for QSGMII.

For fiber patching, the differences are bigger. This takes an approach
to merge the sequences completely despite applying some settings which
weren't applied before on one of the SerDes. Testing and SerDes dumps
showed no or minimal differences, and no practical effect on
functionality. A look at the SerDes register documentation we have shows
reordering the writes isn't problematic because most of the bits aren't
any trigger bits.

With all its users gone, we can now drop also the workaround SDS macro.

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