ath79: use rtl8366rb as a module
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Tue, 26 Apr 2022 21:51:32 +0000 (18:51 -0300)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 1 Jul 2022 18:22:52 +0000 (20:22 +0200)
It looks like rtl8366rb is used only by tplink_tl-wr1043nd-v1 and
buffalo_wzr-hp-g300nh-rb. There is no need to have it built-in as it
works as a loadable module.

Tested both failsafe and normal boot on tl-wr1043nd-v1.
buffalo_wzr-hp-g300nh-rb was not tested.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
target/linux/ath79/generic/config-default
target/linux/ath79/image/generic-tp-link.mk
target/linux/ath79/image/generic.mk

index f160cc8d0733c08b069600d42e9772cab4b58316..bc619cd9b825ff7d6833df184db8b406c9c8ee40 100644 (file)
@@ -19,7 +19,6 @@ CONFIG_PHY_AR7100_USB=y
 CONFIG_PHY_AR7200_USB=y
 CONFIG_REALTEK_PHY=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
-CONFIG_RTL8366RB_PHY=y
 CONFIG_RTL8366S_PHY=y
 CONFIG_RTL8366_SMI=y
 CONFIG_RTL8367_PHY=y
index 6d9ba2cd40342744ce6d86c2a23b349367b53220..21cbade7ccc9f518840c04198b5b1cc29ac2252a 100644 (file)
@@ -682,7 +682,7 @@ define Device/tplink_tl-wr1043nd-v1
   SOC := ar9132
   DEVICE_MODEL := TL-WR1043N/ND
   DEVICE_VARIANT := v1
-  DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
+  DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-switch-rtl8366rb
   TPLINK_HWID := 0x10430001
   SUPPORTED_DEVICES += tl-wr1043nd
 endef
index 8d059f367955c005b00ed75f06754f2292f01364..4cc89a4b97b10d3a36f0a908467699da738530b4 100644 (file)
@@ -581,6 +581,7 @@ TARGET_DEVICES += buffalo_wzr-hp-g300nh-rb
 define Device/buffalo_wzr-hp-g300nh-s
   $(Device/buffalo_wzr-hp-g300nh)
   DEVICE_MODEL := WZR-HP-G300NH (RTL8366S switch)
+  DEVICE_PACKAGES += kmod-switch-rtl8366rb
 endef
 TARGET_DEVICES += buffalo_wzr-hp-g300nh-s