openwrt/target/linux
Michael Pratt 6b07d0c077 ramips: mt7620: split gsw hw_init to mac_init, ephy_init
in order for the option ephy-disable to work
without also needing ephy-base option,
we have to skip all the lines that write to mdio addresses that
assume those addresses do not have an external switch.

Otherwise, ephy ports will be disabled in hardware,
but register writes still happen as if they are enabled.

Split the functions so that other things are done first,
and ephy port setup can be skipped with a simple "return".

Tested on Engenius EPG600 (MT7620A ver:2 eco:3)
with QCA8337 external switch

Ref: cc6fd6fbb5 ("ramips: mt7620: add ephy-disable option to switch driver")
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2023-02-18 16:55:35 +01:00
..
airoha airoha: disable swconfig 2022-11-27 13:18:29 +01:00
apm821xx treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
archs38 treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
armvirt kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config 2022-10-21 13:47:01 +02:00
at91 treewide: strip useless default n Kconfig lines 2023-02-03 12:50:15 +01:00
ath25 treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
ath79 kernel: bump 5.15 to 5.15.94 2023-02-18 15:06:04 +01:00
bcm27xx kernel: bump 5.15 to 5.15.93 2023-02-11 23:39:30 +01:00
bcm47xx bcm47xx: revert bgmac back to the old limited max frame size 2023-02-07 18:29:34 +01:00
bcm53xx bcm53xx: fix shebang in packet_steering.sh 2023-02-15 19:44:11 +01:00
bcm63xx bcm63xx: fix dts whitespace 2023-02-09 03:03:50 +01:00
bcm4908 bcm4908: refactor packet steering init 2023-02-15 19:44:11 +01:00
bmips treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
gemini gemini: add generic subtarget 2022-12-23 19:44:20 +01:00
generic kernel: bump 5.15 to 5.15.94 2023-02-18 15:06:04 +01:00
imx cypress-nvram: consolidate NVRAM packages 2022-11-16 20:14:13 +01:00
ipq40xx treewide: replace /sys/devices/virtual/ubi by /sys/class/ubi 2023-02-15 03:27:59 +00:00
ipq806x Revert "ipq806x: disable ea8500 image by default" 2023-02-17 04:27:16 +01:00
ipq807x ipq807x: Add bluetooth driver to zyxel nbg7815 2023-02-18 16:23:31 +01:00
kirkwood treewide: replace /sys/devices/virtual/ubi by /sys/class/ubi 2023-02-15 03:27:59 +00:00
lantiq lantiq: ar9/vr9: add fritz-tffs package 2023-02-08 00:19:54 +01:00
layerscape layerscape: Add CONFIG_NVMEM_LAYERSCAPE_SFP kernel configuration option 2023-01-08 18:51:27 +01:00
malta treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
mediatek mediatek: add support for Netgear WAX206 2023-02-18 15:46:45 +01:00
mpc85xx mpc85xx: p2020: kernel: enable CONFIG_BLK_DEV_NVME 2023-02-07 21:24:37 +01:00
mvebu treewide: replace /sys/devices/virtual/ubi by /sys/class/ubi 2023-02-15 03:27:59 +00:00
mxs mxs: switch default kernel to 5.15 2023-01-30 11:13:14 +01:00
octeon kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config 2022-10-21 13:47:01 +02:00
octeontx octeontx: add sqaushfs and ramdisk to features 2023-01-06 19:44:35 +01:00
omap treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
oxnas treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
pistachio pistachio: Cleanup kernel configuration 2023-01-28 19:58:20 +01:00
qoriq qoriq: drop unused kernel config 2023-01-09 21:39:45 +02:00
ramips ramips: mt7620: split gsw hw_init to mac_init, ephy_init 2023-02-18 16:55:35 +01:00
realtek kernel: bump 5.15 to 5.15.94 2023-02-18 15:06:04 +01:00
rockchip treewide: update NVMEM symbols 2023-01-07 01:30:31 +01:00
sunxi treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
tegra treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
uml treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
x86 x86: add Barracuda Networks F12 interfaces 2023-02-03 14:05:37 +01:00
zynq zynq: remove kconfig for 5.10 2023-01-30 18:01:14 +08:00
Makefile build: fix issues with targets installed via feeds 2022-09-27 13:41:12 +02:00