realtek: pcs: rtl931x: map interface mode to hardware mode
authorJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 15 Dec 2025 17:37:01 +0000 (17:37 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 23 Dec 2025 17:53:33 +0000 (18:53 +0100)
commitd7a184e3b1fbb7b6c039bfd6ff88be7c581409cd
treebe2033e0b81dc4e9141f00d8da4ed3a60b022eb2
parent9856f6b0aa3250f83818d0860abe201de3f658fa
realtek: pcs: rtl931x: map interface mode to hardware mode

The PCS driver is intended to use a dedicated hardware mode in the
future because the hardware capabilities and modes of the SerDes do not
align with the PHY_INTERFACE_MODE_* modes.

For the beginning, use the previously introduced generic mode mapping
in the SerDes setup and assign the determined hardware mode to the
corresponding field of a SerDes instance. This allows parallel usage of
both mode representations for the time being, until the phy_interface_t
modes can be dropped from internal functions completely.

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