realtek: pcs: rtl839x: add SerDes setup functionality
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 9 Nov 2025 10:58:40 +0000 (10:58 +0000)
committerStijn Tintel <stijn@linux-ipv6.be>
Fri, 9 Jan 2026 12:32:52 +0000 (14:32 +0200)
commitafec14aee16f537f50693defeded698575e0023b
tree05a9b56b7d6235201de9e7aa4ba8baa0e9e1f522
parent7de5ba2e983f89b984e8bf8941e492d9b414039a
realtek: pcs: rtl839x: add SerDes setup functionality

Add basic SerDes setup functionality which determines and sets the
hardware mode of a SerDes, and does a SerDes reset. This is restricted
to the 10G SerDes only as the 5G SerDes are setup properly by default.
Further initialization will be needed for the modes to function properly

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21360
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c