]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: dsa: rtl931x: remove enabling MAC from phylink_mac_config 20369/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 8 Oct 2025 19:07:06 +0000 (19:07 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 19 Oct 2025 21:49:56 +0000 (23:49 +0200)
commit29cc0b6ccf4aeb9e3246d98ce67088847ff9b8a1
treede857d175fc69815fc66bdb6a8341a59db739975
parent4a5de35dbada5d76510030afdd39ddf836e3b459
realtek: dsa: rtl931x: remove enabling MAC from phylink_mac_config

Originally, phylink_mac_config first disabled the MAC, then triggered
the SerDes setup and then re-enabled MAC. SerDes setup has been moved to
the PCS driver now but pcs_config is called AFTER phylink_mac_config by
phylink subsystem.

Thus, just disable the MAC in phylink_mac_config. After PCS has setup
the SerDes, the MAC should be properly brought up in a mac_link_up call
coming from the phylink subsystem.

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