openwrt/target/linux/ramips/files/drivers/net/ethernet/ralink
Lech Perczak ca942a5910 ramips: mtk_eth_soc: allow multiple resets
Use devm_reset_control_array_get_exclusive to register multiple
reset lines in FE driver. This is required to reattach ESW reset to FE
driver again, based on device tree bindings.

While at that, remove unused fe_priv.rst_ppe field, and add error
message if getting the reset fails.

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 3f1be8edee)
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
2024-01-04 22:25:29 +01:00
..
esw_rt3050.c ramips: ethernet: ralink: rewrite esw_rt3050 to support link states 2021-06-25 12:30:20 +02: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: allow multiple resets 2024-01-04 22:25:29 +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