openwrt/target/linux/ramips/files/drivers
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
..
mmc/host/mtk-mmc ramips: fix kernel module build errors on linux 5.15 2022-03-28 11:03:13 +02:00
mtd/nand/raw ramips: skip bbt scan on mt7621 2022-03-25 21:11:09 +01:00
net/ethernet/ralink ramips: mt7620: split gsw hw_init to mac_init, ephy_init 2023-02-18 16:55:35 +01:00
pinctrl ramips: aw9523: add can_sleep flag for GPIO chip 2021-12-29 03:43:03 +01:00