realtek: pcs: rtl931x: separate and reuse 1000base-x config
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 14 Dec 2025 11:54:15 +0000 (11:54 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 23 Dec 2025 17:53:34 +0000 (18:53 +0100)
commit7899dfa6ef716aabc4cda07822ffaf80e23f2a4f
treec70d519568a0304b8eb9ddcb13ac7cfe4ee2a37e
parent5334b41b00051912cbc7a1bf23eb681e467ac804
realtek: pcs: rtl931x: separate and reuse 1000base-x config

Move the configuration of 1000Base-X mode into its own function. This
way, redundant code can be replaced by a single function call.

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