realtek: dsa: remove obsolete attributes from port structure

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>
This commit is contained in:
Markus Stockhausen 2026-03-03 19:46:55 +01:00 committed by Robert Marko
parent 4253882e4e
commit dddda85985
2 changed files with 0 additions and 12 deletions

View 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))

View 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;