realtek: add 10GBASER to supported interfaces in DSA driver
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Mon, 23 Dec 2024 11:58:30 +0000 (20:58 +0900)
committerSander Vanheule <sander@svanheule.net>
Tue, 21 Jan 2025 17:37:51 +0000 (18:37 +0100)
add PHY_INTERFACE_MODE_10GBASER to supported_interfaces for using
10GBase-*R interfaces on SFP+ ports.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17593
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/dsa.c

index f9d37fb3bd2f989583df5c20d03c1d61b13cbdf4..69151b2f6bb4d077e8c8a0b619bd4ef6101773f8 100644 (file)
@@ -686,6 +686,7 @@ static void rtl83xx_phylink_get_caps(struct dsa_switch *ds, int port,
        __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);
+       __set_bit(PHY_INTERFACE_MODE_10GBASER, config->supported_interfaces);
 }
 
 static void rtl83xx_phylink_mac_config(struct dsa_switch *ds, int port,