Skip to content

Commit

Permalink
ramips: remove legacy ethernet driver components for mt7621
Browse files Browse the repository at this point in the history
The mt7621 subtarget has been switched to DSA quite a while ago and
seems to run sufficiently fine. Build with older kernels than 5.4 has
been disabled directly during the kernel bump, so our local ethernet
driver is unused in master since then.

Therefore, let's remove the mt7621-specific parts of "our" ethernet
driver, so we don't have to maintain them and it's obvious to
everybody that they are not used anymore.

This also drops the offloading components as this was specifically
implemented to depend on mt7621.

Signed-off-by: Adrian Schmutzler <[email protected]>
  • Loading branch information
adschm committed Aug 21, 2020
1 parent 373d4cc commit 734a8c4
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 1,433 deletions.
16 changes: 2 additions & 14 deletions target/linux/ramips/files/drivers/net/ethernet/ralink/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,15 @@ config NET_RALINK_MT7620
bool "MT7620"
depends on MIPS && SOC_MT7620

config NET_RALINK_MT7621
bool "MT7621"
depends on MIPS && SOC_MT7621

endchoice

config NET_RALINK_OFFLOAD
def_bool NET_RALINK_SOC
depends on NET_RALINK_MT7621

config NET_RALINK_HW_QOS
def_bool NET_RALINK_SOC
depends on NET_RALINK_MT7623

config NET_RALINK_MDIO
def_bool NET_RALINK_SOC
depends on (NET_RALINK_RT2880 || NET_RALINK_RT3883 || NET_RALINK_MT7620 || NET_RALINK_MT7621)
depends on (NET_RALINK_RT2880 || NET_RALINK_RT3883 || NET_RALINK_MT7620)
select PHYLIB

config NET_RALINK_MDIO_RT2880
Expand All @@ -53,7 +45,7 @@ config NET_RALINK_MDIO_RT2880

config NET_RALINK_MDIO_MT7620
def_bool NET_RALINK_SOC
depends on (NET_RALINK_MT7620 || NET_RALINK_MT7621)
depends on NET_RALINK_MT7620
select NET_RALINK_MDIO

config NET_RALINK_ESW_RT3050
Expand All @@ -63,8 +55,4 @@ config NET_RALINK_ESW_RT3050
config NET_RALINK_GSW_MT7620
def_tristate NET_RALINK_SOC
depends on NET_RALINK_MT7620

config NET_RALINK_GSW_MT7621
def_tristate NET_RALINK_SOC
depends on NET_RALINK_MT7621
endif
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ ralink-eth-$(CONFIG_NET_RALINK_MDIO) += mdio.o
ralink-eth-$(CONFIG_NET_RALINK_MDIO_RT2880) += mdio_rt2880.o
ralink-eth-$(CONFIG_NET_RALINK_MDIO_MT7620) += mdio_mt7620.o

ralink-eth-$(CONFIG_NET_RALINK_OFFLOAD) += mtk_offload.o mtk_debugfs.o

ralink-eth-$(CONFIG_NET_RALINK_RT2880) += soc_rt2880.o
ralink-eth-$(CONFIG_NET_RALINK_RT3050) += soc_rt3050.o
ralink-eth-$(CONFIG_NET_RALINK_RT3883) += soc_rt3883.o
ralink-eth-$(CONFIG_NET_RALINK_MT7620) += soc_mt7620.o
ralink-eth-$(CONFIG_NET_RALINK_MT7621) += soc_mt7621.o

obj-$(CONFIG_NET_RALINK_ESW_RT3050) += esw_rt3050.o
obj-$(CONFIG_NET_RALINK_GSW_MT7620) += gsw_mt7620.o mt7530.o
obj-$(CONFIG_NET_RALINK_GSW_MT7621) += gsw_mt7621.o mt7530.o
obj-$(CONFIG_NET_RALINK_SOC) += ralink-eth.o
275 changes: 0 additions & 275 deletions target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7621.c

This file was deleted.

Loading

0 comments on commit 734a8c4

Please sign in to comment.