]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: Identify RTL9311 properly 18871/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 21 May 2025 15:29:05 +0000 (11:29 -0400)
committerRobert Marko <robimarko@gmail.com>
Wed, 21 May 2025 15:39:49 +0000 (17:39 +0200)
RTL9311 switches (like the Linksys LGS352C) will boot but have not set
the right family id in the soc_info structure. Fix that so drivers do
their work right when checking for that.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18871
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.6/arch/mips/rtl838x/prom.c

index 0c98af954859e1add904e5840d5f558cd0d8c58c..73dac88b3cb413dc65e1826908fdccd139b88673 100644 (file)
@@ -181,6 +181,10 @@ void __init prom_init(void)
                soc_info.name = "RTL9303";
                soc_info.family = RTL9300_FAMILY_ID;
                break;
+       case 0x9311:
+               soc_info.name = "RTL9311";
+               soc_info.family = RTL9310_FAMILY_ID;
+               break;
        case 0x9313:
                soc_info.name = "RTL9313";
                soc_info.family = RTL9310_FAMILY_ID;