]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: dsa: add MAC_LINK_STS to config structure
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 4 Mar 2026 07:13:25 +0000 (08:13 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 14 Mar 2026 21:48:37 +0000 (22:48 +0100)
This register will be needed to provide a generic irq handler. Add
it to the configuration structure of the driver.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22273
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.h
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl839x.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c

index 650b46db1488a8db0f87c4cfc6e05838233b8bde..f9756dcc7e21c999900e59a9c392f934d54c3b5f 100644 (file)
@@ -1845,6 +1845,7 @@ const struct rtldsa_config rtldsa_838x_cfg = {
        .vlan_set_tagged = rtl838x_vlan_set_tagged,
        .vlan_set_untagged = rtl838x_vlan_set_untagged,
        .mac_force_mode_ctrl = rtl838x_mac_force_mode_ctrl,
+       .mac_link_sts = RTL838X_MAC_LINK_STS,
        .vlan_profile_get = rtldsa_838x_vlan_profile_get,
        .vlan_profile_dump = rtldsa_838x_vlan_profile_dump,
        .vlan_profile_setup = rtl838x_vlan_profile_setup,
index 0843676e931fc0df8305c5eb3b77c6df3ce1cbf5..acdc40f0488567c8d470a104ac3159548ad9e292 100644 (file)
@@ -1444,6 +1444,7 @@ struct rtldsa_config {
        void (*set_static_move_action)(int port, bool forward);
        int (*stp_get)(struct rtl838x_switch_priv *priv, u16 msti, int port, u32 port_state[]);
        void (*stp_set)(struct rtl838x_switch_priv *priv, u16 msti, u32 port_state[]);
+       int mac_link_sts;
        int  (*mac_force_mode_ctrl)(int port);
        int  (*mac_port_ctrl)(int port);
        int  (*l2_port_new_salrn)(int port);
index 9f0196c371fc2e175cfbcbfbb5c8b5d5076e3ff1..a4bd5a914e51e22aabb844d6ce4181b22be34308 100644 (file)
@@ -1800,6 +1800,7 @@ const struct rtldsa_config rtldsa_839x_cfg = {
        .stp_get = rtldsa_839x_stp_get,
        .stp_set = rtl839x_stp_set,
        .mac_force_mode_ctrl = rtl839x_mac_force_mode_ctrl,
+       .mac_link_sts = RTL839X_MAC_LINK_STS,
        .mac_port_ctrl = rtl839x_mac_port_ctrl,
        .l2_port_new_salrn = rtl839x_l2_port_new_salrn,
        .l2_port_new_sa_fwd = rtl839x_l2_port_new_sa_fwd,
index c86b28a45b0dfbbded79a0281c26572d0b862cf1..b258f05ba7d847b233b0426ae19d5f3375b285f5 100644 (file)
@@ -2861,6 +2861,7 @@ const struct rtldsa_config rtldsa_930x_cfg = {
        .set_vlan_egr_filter = rtl930x_set_egr_filter,
        .stp_get = rtldsa_930x_stp_get,
        .stp_set = rtl930x_stp_set,
+       .mac_link_sts = RTL930X_MAC_LINK_STS,
        .mac_force_mode_ctrl = rtl930x_mac_force_mode_ctrl,
        .mac_port_ctrl = rtl930x_mac_port_ctrl,
        .l2_port_new_salrn = rtl930x_l2_port_new_salrn,
index 3a2a0f512182a51afb5e0aaa884af26ee400edfe..fbefb3c79bd7ecc23e444bb39381c58edd31dbd9 100644 (file)
@@ -2008,6 +2008,7 @@ const struct rtldsa_config rtldsa_931x_cfg = {
        .stp_get = rtldsa_931x_stp_get,
        .stp_set = rtl931x_stp_set,
        .mac_force_mode_ctrl = rtl931x_mac_force_mode_ctrl,
+       .mac_link_sts = RTL931X_MAC_LINK_STS,
        .mac_port_ctrl = rtl931x_mac_port_ctrl,
        .l2_port_new_salrn = rtl931x_l2_port_new_salrn,
        .l2_port_new_sa_fwd = rtl931x_l2_port_new_sa_fwd,