immortalwrt/target/linux/ramips/files/drivers/net/ethernet/ralink
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
..
esw_rt3050.c ramips: ethernet: ralink: add led_source dts-binding 2022-05-01 13:40:13 +09:00
esw_rt3050.h ramips: ethernet: ralink: rewrite esw_rt3050 to support link states 2021-06-25 12:30:20 +02:00
ethtool.c
ethtool.h
gsw_mt7620.c ramips: mt7620: split gsw hw_init to mac_init, ephy_init 2023-02-18 16:55:35 +01:00
gsw_mt7620.h ramips: mt7620: ethernet: use more macros and bump version 2021-06-23 14:22:19 +08:00
Kconfig
Makefile
mdio_mt7620.c
mdio_rt2880.c ramips: 5.10: port and refresh patches, ralink drv 2021-03-06 11:24:12 +01:00
mdio_rt2880.h
mdio.c ramips: mt7620: remove useless GMAC nodes 2021-06-23 14:22:18 +08:00
mdio.h
mt7530.c ramips: mt7530 swconfig: fix race condition in register access 2021-04-15 00:00:54 +08:00
mt7530.h
mtk_eth_soc.c treewide: backport support for nvmem on non platform devices 2021-08-05 01:46:26 +02:00
mtk_eth_soc.h ramips: ethernet: ralink: add fe_reset_fe() to reset fe via reset controller 2021-06-25 10:52:50 +02:00
soc_mt7620.c ramips: ethernet: ralink: add struct fe_priv as context to fe_reset() 2021-06-25 10:52:50 +02:00
soc_rt2880.c ramips: ethernet: ralink: add fe_reset_fe() to reset fe via reset controller 2021-06-25 10:52:50 +02:00
soc_rt3050.c ramips: ethernet: ralink: rewrite esw_rt3050 to support link states 2021-06-25 12:30:20 +02:00
soc_rt3883.c ramips: ethernet: ralink: add fe_reset_fe() to reset fe via reset controller 2021-06-25 10:52:50 +02:00