]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: move USXGMII submodes out of sds_mode enum main master 24494/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 22 Jul 2026 21:31:14 +0000 (21:31 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 31 Jul 2026 15:32:11 +0000 (17:32 +0200)
commitc9833b993d0157bed916203d1ae342b94608a982
treee8486611cbe352a101e1a3ec3c9c400c8d9c8fb4
parent22d05b6a95b1f3a9e69bb391a6bb788bb234c4d9
realtek: pcs: move USXGMII submodes out of sds_mode enum

Carrying all six USXGMII submodes as distinct rtpcs_sds_mode values
forced every switch/case over hw_mode to enumerate them individually,
even though almost none of that code actually cares which submode is
active; a couple of places on 930X do, but only to tell SXGMII/QXGMII
apart from the rest.

Collapse them into a single RTPCS_SDS_MODE_USXGMII and introduce
rtpcs_sds_usxgmii_submode for the cases that still need the
distinction, threading it explicitly through hw-mode selection and
set_hw_mode instead of overloading the mode enum for it.

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