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>
Tue, 2 Jan 2024 21:00:20 +0000 (22:00 +0100)
commitf393ffcac163926bf9dbbda47c25cc7809952609
tree8b28ef8f506be3cbb626c714b2dfd268e39d7028
parentf87b66507e9245e6e02dbc76e2e7b27c9e0bf364
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>
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c