[openwrt/openwrt] realtek: add 10GBASER to supported interfaces in DSA driver

LEDE Commits lede-commits at lists.infradead.org
Tue Jan 21 09:39:17 PST 2025


svanheule pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/09fbc5d343bb5a5c247c9f302491108de740606f

commit 09fbc5d343bb5a5c247c9f302491108de740606f
Author: INAGAKI Hiroshi <musashino.open at gmail.com>
AuthorDate: Mon Dec 23 20:58:30 2024 +0900

    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 <musashino.open at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/17593
    Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
 target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/dsa.c | 1 +
 1 file changed, 1 insertion(+)

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,




More information about the lede-commits mailing list