raimps: mtk_eth_soc: drop rst_esw from ESW driver
authorLech Perczak <lech.perczak@gmail.com>
Fri, 15 Dec 2023 16:25:05 +0000 (17:25 +0100)
committerLech Perczak <lech.perczak@gmail.com>
Thu, 4 Jan 2024 21:29:46 +0000 (22:29 +0100)
commit17ee3e0b20b75a59da86dd60f8da7e9661591fc6
treed9cd047f9bdc5c9dab9ebe66b3838c3ccfb3a119
parent5ef01117b77648e24287d304cf016092069c730a
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: 60fadae62b64 ("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 f393ffcac163926bf9dbbda47c25cc7809952609)
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c