瀏覽代碼

ath79: Push MV88E6060 DSA switch into package

We can use a package for the MV88E6060 DSA switch on the single
ath79 device that uses it, saving around 600 KB of memory on
all other devices (for the DSA infrastructure, mainly).

As far as I can see the TP-Link TL WR941 v2 is the only device
using MV88E6060 and the only device with a DSA switch overall.

However the ath79 people should look at this so I'm not
mistaken.

Signed-off-by: Linus Walleij <[email protected]>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/[email protected]/
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit e7419381fdd43a49e7583a786ce2d9c2ed1b4afe)
Linus Walleij 10 月之前
父節點
當前提交
8931d617dd
共有 2 個文件被更改,包括 1 次插入3 次删除
  1. 1 0
      target/linux/ath79/image/tiny-tp-link.mk
  2. 0 3
      target/linux/ath79/tiny/config-default

+ 1 - 0
target/linux/ath79/image/tiny-tp-link.mk

@@ -481,6 +481,7 @@ define Device/tplink_tl-wr941-v2
   $(Device/tplink-4m)
   SOC := ar9132
   DEVICE_MODEL := TL-WR941ND
+  DEVICE_PACKAGES := kmod-dsa-mv88e6060
   DEVICE_VARIANT := v2/v3
   DEVICE_ALT0_VENDOR := TP-Link
   DEVICE_ALT0_MODEL := TL-WR941N

+ 0 - 3
target/linux/ath79/tiny/config-default

@@ -1,9 +1,6 @@
 CONFIG_GRO_CELLS=y
 CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
 CONFIG_NET_DEVLINK=y
-CONFIG_NET_DSA=y
-CONFIG_NET_DSA_MV88E6060=y
-CONFIG_NET_DSA_TAG_TRAILER=y
 CONFIG_NET_SWITCHDEV=y
 CONFIG_NVMEM_SYSFS=y
 CONFIG_NVMEM_U_BOOT_ENV=y