]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl931x: import SerDes setup code from PHY driver
authorJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 8 Oct 2025 11:11:10 +0000 (11:11 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 19 Oct 2025 21:49:56 +0000 (23:49 +0200)
commitddf94f74899fb2584aef3105d5c737ed3ef80c2b
tree7e34db025ea13192c59d38976080131c9a4bc600
parent61d50c2e4965c52fe8be071f33437a7e2c99c31b
realtek: pcs: rtl931x: import SerDes setup code from PHY driver

Let's start this transition with RTL931X.

Import all functions starting with 'rtl931x_' or 'rtsds_931x' from PHY
driver into the PCS driver, rename all functions to match a common
naming scheme and adjust signature, helper calls and function calls
accordingly to make it work within the PCS driver.

This is just copy&paste and tries to do only mandatory adjustments. The
code will be refactored in succeeding commits.

Also remove 'unused' attribute from helpers as they are used now.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20369
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c