]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: dsa: remove obsolete attributes from port structure 22255/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 3 Mar 2026 18:46:55 +0000 (19:46 +0100)
committerRobert Marko <robimarko@gmail.com>
Thu, 5 Mar 2026 09:39:34 +0000 (10:39 +0100)
The attributes "is2G5" and "is10G" are set but never used. Drop them.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22255
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.h

index 4b0e4b4fa2e34af995c1e78fee9647d10d3016c8..8bde96b49767841a6fc100240721d34a51e9baa8 100644 (file)
@@ -287,7 +287,6 @@ static int rtl83xx_mdio_probe(struct rtl838x_switch_priv *priv)
        led_node = of_find_compatible_node(NULL, NULL, "realtek,rtl9300-leds");
 
        for_each_node_by_name(dn, "port") {
-               phy_interface_t interface;
                u32 led_set;
                char led_set_str[16] = {0};
 
@@ -314,15 +313,6 @@ static int rtl83xx_mdio_probe(struct rtl838x_switch_priv *priv)
                        }
                }
 
-               if (of_get_phy_mode(dn, &interface))
-                       interface = PHY_INTERFACE_MODE_NA;
-               if (interface == PHY_INTERFACE_MODE_10G_QXGMII)
-                       priv->ports[pn].is2G5 = true;
-               if (interface == PHY_INTERFACE_MODE_USXGMII)
-                       priv->ports[pn].is2G5 = priv->ports[pn].is10G = true;
-               if (interface == PHY_INTERFACE_MODE_10GBASER)
-                       priv->ports[pn].is10G = true;
-
                priv->ports[pn].leds_on_this_port = 0;
                if (led_node) {
                        if (of_property_read_u32(dn, "led-set", &led_set))
index eafd43b5db78f6d7a6e65457d9d42fdeab2b31ed..120f77f9cffb4b23dc3cc4f20eec2f588ab5c28d 100644 (file)
@@ -877,8 +877,6 @@ struct rtldsa_counter_state {
 struct rtldsa_port {
        bool enable:1;
        bool phy_is_integrated:1;
-       bool is10G:1;
-       bool is2G5:1;
        bool isolated:1;
        bool rate_police_egress:1;
        bool rate_police_ingress:1;