realtek: pcs: rtl931x: merge helper into mode setting
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sat, 20 Dec 2025 20:40:12 +0000 (20:40 +0000)
committerRobert Marko <robimarko@gmail.com>
Mon, 29 Dec 2025 16:06:19 +0000 (17:06 +0100)
commitf67d9ed9b44b1838dd2cabbc48b228be5a8ff434
tree9d6825dc6f6c06ea7ec3eefa0a9733a418edf677
parent6614fcb95ef71c666cf3c169754f39c14a03921b
realtek: pcs: rtl931x: merge helper into mode setting

Merge the 'rtpcs_931x_sds_disable' helper into the MII mode setting and
use that instead. The helper was essentially doing same just with a
value for OFF state.

Moreover, the name of the helper was confusing. It implied it disables
the whole SerDes. However, this is used in Fiber mode setting and thus,
cannot completely disable the SerDes.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20736
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c