openwrt/target/linux/ramips/files/drivers/net/ethernet/ralink
Lech Perczak 17ee3e0b20 raimps: mtk_eth_soc: drop rst_esw from ESW driver
The ESW core needs to be reset together with FE core, so after the
relevant reset controller lines are moved under FE, drop rst_esw and all
related code, which would not execute anyway, because rst_esw would be
NULL. While at that, ensure that if reset line for EPHY cannot be
claimed, a proper error message is reported.

Fixes: 60fadae62b ("ramips: ethernet: ralink: move reset of the esw into the esw instead of fe")

Co-developed-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>

[Split out of the bigger commit, provide commit mesage, refactor error
handling]
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>

(cherry picked from commit f393ffcac1)
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
2024-01-04 22:29:46 +01:00
..
esw_rt3050.c raimps: mtk_eth_soc: drop rst_esw from ESW driver 2024-01-04 22:29:46 +01:00
esw_rt3050.h ramips: ethernet: ralink: rewrite esw_rt3050 to support link states 2021-06-25 12:30:20 +02:00
ethtool.c ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
ethtool.h ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
gsw_mt7620.c ramips: mt7620: ethernet: use more macros and bump version 2021-06-23 14:22:19 +08:00
gsw_mt7620.h ramips: mt7620: ethernet: use more macros and bump version 2021-06-23 14:22:19 +08:00
Kconfig ramips: remove legacy ethernet driver components for mt7621 2020-08-21 15:46:54 +02:00
Makefile ramips: remove legacy ethernet driver components for mt7621 2020-08-21 15:46:54 +02:00
mdio_mt7620.c ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
mdio_rt2880.c ramips: 5.10: port and refresh patches, ralink drv 2021-03-06 11:24:12 +01:00
mdio_rt2880.h ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
mdio.c ramips: mt7620: remove useless GMAC nodes 2021-06-23 14:22:18 +08:00
mdio.h ramips: move and rename out-of-tree mtk eth driver 2020-04-12 22:27:17 +08:00
mt7530.c ramips: mt7530 swconfig: fix race condition in register access 2021-04-15 00:00:54 +08:00
mt7530.h ramips: remove further mt7621 code from local ethernet driver 2020-08-26 23:58:01 +02:00
mtk_eth_soc.c ramips: mtk_eth_soc: wait longer after FE core reset to settle 2024-01-04 22:28:00 +01:00
mtk_eth_soc.h ramips: mtk_eth_soc: allow multiple resets 2024-01-04 22:25:29 +01: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