]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: add mapping for SerDes hardware mode
authorJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 19 Dec 2025 10:11:06 +0000 (10:11 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 23 Dec 2025 17:53:33 +0000 (18:53 +0100)
commit0f176ef961585d28100ed98011eec9918aba3e51
tree6bc766d8f49ca138ebd6079be18375e9283749f3
parent1912f45b485d1dec0bc2781914f789bedd890c67
realtek: pcs: add mapping for SerDes hardware mode

Add a generic mapper for mapping the PHY_INTERFACE_MODE_* modes to the
SerDes hardware modes RTPCS_SDS_MODE_*. This is to be used by all
subtargets step-by-step and avoids having subtarget-specific code for
that simple mapping.

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