]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl931x: read chip specifics in early init
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 1 Feb 2026 09:56:09 +0000 (09:56 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 7 Feb 2026 23:35:19 +0000 (00:35 +0100)
commit459b456185210f1311b98a9daed4af3cd291ef6d
treea93ce63d0899372a46010b9096a6115408f99f28
parent0af3177b4d30ff96b6f6e96075c6abec023dad36
realtek: pcs: rtl931x: read chip specifics in early init

The SerDes setup for RTL931x relies on chip specifics in some cases,
Determining both usually requires some register operations. But we can
avoid to do this every time again and again since the information is
static anyway. Thus, move this to initialization for RTL93xx, only read
once and store it in the global control structure. Though not used for
RTL930x, it has the same registers and information.

While at it, give referenced defines a proper prefix.

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