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)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 5 Jan 2024 22:32:59 +0000 (23:32 +0100)
commit23506e7789ab4890abf1a6465df1352d459562d9
tree22bfb1cf4a57c46e7dc6e6aff949524271e43f08
parent0128d860a0724514256e1a31e24f0515a7b7bd0e
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