realtek: 6.6: Support XGMII attached PHYs
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sat, 14 Sep 2024 20:22:40 +0000 (16:22 -0400)
committerRobert Marko <robimarko@gmail.com>
Mon, 16 Sep 2024 08:33:28 +0000 (10:33 +0200)
On the XGS1210-12 the RTL8218D is attached via XGMII. Add this to the
supported list in the DSA driver.

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

index 2f9b3ba8c1470906884ead52442417393aaf7ae7..d61122e330d8f2b608ba06280e6106fc19c71ef7 100644 (file)
@@ -683,6 +683,7 @@ static void rtl83xx_phylink_get_caps(struct dsa_switch *ds, int port,
        __set_bit(PHY_INTERFACE_MODE_GMII, config->supported_interfaces);
        __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_1000BASEX, config->supported_interfaces);
 }