[openwrt/openwrt] ath79: use rtl8366s and rtl8366_smi as a module

LEDE Commits lede-commits at lists.infradead.org
Fri Jul 1 11:23:12 PDT 2022


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/6e0f0eae5b48bddead035d9dd89b710c10c50337

commit 6e0f0eae5b48bddead035d9dd89b710c10c50337
Author: Luiz Angelo Daros de Luca <luizluca at gmail.com>
AuthorDate: Wed Apr 27 14:58:33 2022 -0300

    ath79: use rtl8366s and rtl8366_smi as a module
    
    rtl8366s is used only by dlink_dir-825-b1 and the netgear_wndr family
    (wndr3700, wndr3700-v2, wndr3800ch, wndr3800.dts, wndrmac-v1,
    wndrmac-v2).
    
    Not tested in real hardware.
    
    With rtl8366rb, rtl8366s, rtl8367 as modules, rtl8366_smi can also be a
    loadable module. This change was tested with tl-wr2543-v1.
    
    Signed-off-by: Luiz Angelo Daros de Luca <luizluca at gmail.com>
---
 target/linux/ath79/generic/config-default | 2 --
 target/linux/ath79/image/generic.mk       | 4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/target/linux/ath79/generic/config-default b/target/linux/ath79/generic/config-default
index 3b986f6620..dd59a35490 100644
--- a/target/linux/ath79/generic/config-default
+++ b/target/linux/ath79/generic/config-default
@@ -19,7 +19,5 @@ CONFIG_PHY_AR7100_USB=y
 CONFIG_PHY_AR7200_USB=y
 CONFIG_REALTEK_PHY=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
-CONFIG_RTL8366S_PHY=y
-CONFIG_RTL8366_SMI=y
 CONFIG_VITESSE_PHY=y
 CONFIG_WATCHDOG_CORE=y
diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk
index 4cc89a4b97..7442a0f68c 100644
--- a/target/linux/ath79/image/generic.mk
+++ b/target/linux/ath79/image/generic.mk
@@ -998,7 +998,7 @@ define Device/dlink_dir-825-b1
   IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
 	check-size | append-metadata
   DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
-	kmod-leds-reset kmod-owl-loader
+	kmod-leds-reset kmod-owl-loader kmod-switch-rtl8366s
   SUPPORTED_DEVICES += dir-825-b1
 endef
 TARGET_DEVICES += dlink_dir-825-b1
@@ -1709,7 +1709,7 @@ define Device/netgear_wndr3x00
   $(Device/netgear_generic)
   SOC := ar7161
   DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
-	kmod-leds-reset kmod-owl-loader
+	kmod-leds-reset kmod-owl-loader kmod-switch-rtl8366s
 endef
 
 define Device/netgear_wndr3700




More information about the lede-commits mailing list