]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl930x: rework SerDes mode setting 21565/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 11 Jan 2026 22:28:35 +0000 (22:28 +0000)
committerRobert Marko <robimarko@gmail.com>
Sun, 18 Jan 2026 10:19:09 +0000 (11:19 +0100)
commita20ea50dec9cdc5c8b9f4c06bd8a661728128c1c
tree6b4a1130d7feaf23f6031b1147b9e14e4320d0b4
parent13f7a9977bf939ac332e5a1b01a364b12e9b3837
realtek: pcs: rtl930x: rework SerDes mode setting

Rework the SerDes mode setting to have a better logical structure,
similar to how RTL931x currently does it. Mode setting is grouped into a
MAC setup and IP core setup. Most modes just need to trigger the MAC
setup and then they work, otherwise some complex sequence is needed.

To achieve that, rename several functions and group their content
differently. While at it, rename some constants to use the RTPCS_ prefix.

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