]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl93xx: make cmu_page getter generic
authorJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 10 Jul 2026 08:48:48 +0000 (08:48 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 15 Jul 2026 17:36:58 +0000 (19:36 +0200)
commit146d0fb6e02b4b37519075531841806d2e8ff87f
tree2998e17dd2d7ce60f3423fed3d3336a6593e75c5
parentad1de384bf93d44503a13cb3983f35001dd511ef
realtek: pcs: rtl93xx: make cmu_page getter generic

Rename rtpcs_931x_sds_cmu_page_get() to rtpcs_93xx_sds_get_cmu_page()
and move it next to the other 93xx-shared helpers, so RTL930X can
reuse it instead of duplicating the same hw_mode-to-CMU-page switch.
Also fix the wrong -ENOTSUPP return to -EOPNOTSUPP.

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