realtek: refactor RTL930x MAC config to fix PHY ports
authorJan Hoffmann <jan@3e8.eu>
Thu, 27 Feb 2025 19:43:26 +0000 (20:43 +0100)
committerSander Vanheule <sander@svanheule.net>
Tue, 1 Apr 2025 18:33:12 +0000 (20:33 +0200)
commita7e1e138172a1e4f9c35db93c11d026bb3338e24
treecf49da134de53422cc580a45597185280b8d7725
parentfa50e53aa92e4db9dfe091e7dd55c3fc2024ad13
realtek: refactor RTL930x MAC config to fix PHY ports

Currently, network ports using PHYs get a link, but there is no traffic.
Make it work again by moving the MAC config to phylink_mac_link_up.

A similiar change has been previously applied for RTL83xx in commit
cd958d945be0 ("realtek: 6.6: refactor mac config and link up for
RTL83xx").

Fixes: https://github.com/openwrt/openwrt/issues/17010
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Tested-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18268
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl838x.h