ramips: ethernet: ralink: do a reset of the ethernet & switch together
authorAlexander Couzens <lynxis@fe80.eu>
Mon, 5 Sep 2022 02:25:56 +0000 (04:25 +0200)
committerAlexander Couzens <lynxis@fe80.eu>
Mon, 5 Sep 2022 02:29:52 +0000 (04:29 +0200)
commit47a966444409b661624c8a70dce9f35b02fe9e28
tree215f5f777614f8aeaff34e61378755da46f5471a
parent0c8d7e34ab35f6b41f034fd94fec740970e0125b
ramips: ethernet: ralink: do a reset of the ethernet & switch together

The ethernet and switch needs to have the reset at the same time to
ensure a DMA panic doesn't happen.
The DMA panic seems to only happen on the rt503x devices as the SoCs
can have different versions on the ethernet, switch and DMA cores.

Do a partial revert of the reset api change and ignore the reset controller.

Tested-on: zyxel_nbg-419n
Fixes: 8569bc5e0d1b ("ramips: ethernet: ralink: rewrite esw_rt3050 to support link states")
Fixes: 60fadae62b64 ("ramips: ethernet: ralink: move reset of the esw into the esw instead of fe")
Fixes: 694561ae601a ("ramips: ethernet: ralink: use the reset controller api for esw & ephy")
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.h
target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt3050.c