From: INAGAKI Hiroshi Date: Mon, 23 Dec 2024 11:58:30 +0000 (+0900) Subject: realtek: add 10GBASER to supported interfaces in DSA driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=09fbc5d343bb5a5c247c9f302491108de740606f;p=openwrt%2Fstaging%2Fjow.git realtek: add 10GBASER to supported interfaces in DSA driver add PHY_INTERFACE_MODE_10GBASER to supported_interfaces for using 10GBase-*R interfaces on SFP+ ports. Signed-off-by: INAGAKI Hiroshi Link: https://github.com/openwrt/openwrt/pull/17593 Signed-off-by: Sander Vanheule --- diff --git a/target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/dsa.c b/target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/dsa.c index f9d37fb3bd..69151b2f6b 100644 --- a/target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/dsa.c +++ b/target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/dsa.c @@ -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,