openwrt-6.x/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
apm821xx
archs38
armvirt
at91
ath25
ath79 kernel: bump 5.15 to 5.15.94 2023-02-18 15:06:04 +01:00
bcm27xx
bcm47xx
bcm53xx
bcm63xx
bcm4908
bmips
gemini
generic kernel: bump 5.15 to 5.15.94 2023-02-18 15:06:04 +01:00
imx
ipq40xx
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
lantiq
layerscape
malta
mediatek mediatek: add support for Netgear WAX206 2023-02-18 15:46:45 +01:00
mpc85xx
mvebu
mxs
octeon
octeontx
omap
oxnas
pistachio
qoriq
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
sunxi
tegra
uml
x86
zynq
Makefile