]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: drop unused cmu_band code main master 23904/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 21 Jun 2026 14:07:39 +0000 (14:07 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 22 Jun 2026 11:02:07 +0000 (13:02 +0200)
commit8ebf189e60fe9e703d8a687ea1da25f0fe25862a
tree6e9d1a5520ee104b4c2e0e4372190b10fb2dc132
parent0a7becdce1c3fbcb3b41c163bde4c6e575b818c8
realtek: pcs: drop unused cmu_band code

For RTL930x and RTL931x, there were some functions to get and set the
CMU band. However, they were used nearly nowhere and even the SDK
doesn't use them for active SerDes configuration. Drop them to reduce
dead code.

Dropping the cmu_band_set call from RTL931x configuration has no
negative effect. We do not know where this call originally came from.
It was introduced 51c8f76612 ("realtek: improve MAC config handling for
all SoCs") but without any explanation why and where it came from. The
SDK doesn't have it and it may be overwritten again in the later CMU
setup when parts of the SerDes are reset.

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