summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Stockhausen2025-05-21 15:29:05 +0000
committerRobert Marko2025-05-21 15:39:49 +0000
commitcc360fa54d83488346fa9a0ae6c71b5ddf2f4ec6 (patch)
tree86d7756971c0b33dea726de8a72e4581971461e4
parentedf9ed96a4011014c425bbe6000cc7a592c13293 (diff)
downloadopenwrt-cc360fa54d83488346fa9a0ae6c71b5ddf2f4ec6.tar.gz
realtek: Identify RTL9311 properly
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>
-rw-r--r--target/linux/realtek/files-6.6/arch/mips/rtl838x/prom.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/realtek/files-6.6/arch/mips/rtl838x/prom.c b/target/linux/realtek/files-6.6/arch/mips/rtl838x/prom.c
index 0c98af9548..73dac88b3c 100644
--- a/target/linux/realtek/files-6.6/arch/mips/rtl838x/prom.c
+++ b/target/linux/realtek/files-6.6/arch/mips/rtl838x/prom.c
@@ -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;