]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: dsa,pcs: rtl931x: let PCS driver setup SerDes
authorJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 8 Oct 2025 14:21:57 +0000 (14:21 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 19 Oct 2025 21:49:56 +0000 (23:49 +0200)
commit4a5de35dbada5d76510030afdd39ddf836e3b459
tree5e52fffb12d5f9d46234c3c229283bed1db7cf8e
parent8bdc3d1b56e72edeb00b70cdd35fc2aed95c8a45
realtek: dsa,pcs: rtl931x: let PCS driver setup SerDes

Remove SerDes initialization/configuration calls from the DSA driver in
'rtl931x_phylink_mac_config' and let our PCS driver setup the SerDes now
that the driver is able to do that.

pcs_config of the PCS driver is automatically called by phylink, thus
there's no need to call it on our own.

Note that in rtl931x_phylink_mac_config the MAC is enabled before
pcs_config is called. While this seems to work, it isn't good and needs
to be fixed.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20369
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c