realtek: 6.6: refactor mac config and link up for RTL83xx
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 27 Aug 2024 12:01:57 +0000 (08:01 -0400)
committerSander Vanheule <sander@svanheule.net>
Sat, 14 Sep 2024 18:08:57 +0000 (20:08 +0200)
commitcd958d945be06a1b810d55912f32d6e922d952ea
tree4cf719656229d36d6d1bd13be319ddccac387cfd
parentdc9fca1fd19a31af4a0e3f1e3c93306ce4bca8b0
realtek: 6.6: refactor mac config and link up for RTL83xx

Since kernel commit c5714f68a76bcad3d ("net: phylink: explicitly invalidate
link_state members in mac_config") it should be clear that link data can
only be used in mac_link_up(). Refactor that for the RTL83xx targets.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl838x.h