realtek: dsa: allow USXGMII mode
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 18 Oct 2024 06:14:02 +0000 (02:14 -0400)
committerRobert Marko <robimarko@gmail.com>
Sun, 27 Oct 2024 21:26:25 +0000 (22:26 +0100)
RTL930x devices need the USXGMII mode. This is a final leftover
from the 6.6 conversion.

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

index d61122e330d8f2b608ba06280e6106fc19c71ef7..f9d37fb3bd2f989583df5c20d03c1d61b13cbdf4 100644 (file)
@@ -684,6 +684,7 @@ static void rtl83xx_phylink_get_caps(struct dsa_switch *ds, int port,
        __set_bit(PHY_INTERFACE_MODE_QSGMII, config->supported_interfaces);
        __set_bit(PHY_INTERFACE_MODE_SGMII, config->supported_interfaces);
        __set_bit(PHY_INTERFACE_MODE_XGMII, config->supported_interfaces);
+       __set_bit(PHY_INTERFACE_MODE_USXGMII, config->supported_interfaces);
        __set_bit(PHY_INTERFACE_MODE_1000BASEX, config->supported_interfaces);
 }