aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-06-10 00:16:53 +0200
committerAlexander Couzens <lynxis@fe80.eu>2021-06-25 10:52:50 +0200
commit60fadae62b64b14faff818e4156d9c6eb3f96b65 (patch)
tree6cd9701f3aa2791a0d918723ec007cfd171e7e79 /target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
parent694561ae601ae41c622b8cb2d40dfe34feeaa174 (diff)
downloadupstream-60fadae62b64b14faff818e4156d9c6eb3f96b65.tar.gz
upstream-60fadae62b64b14faff818e4156d9c6eb3f96b65.tar.bz2
upstream-60fadae62b64b14faff818e4156d9c6eb3f96b65.zip
ramips: ethernet: ralink: move reset of the esw into the esw instead of fe
The esw reset should only done by the esw driver and not by the fe itself. Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c')
-rw-r--r--target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
index cd6ae07595..4a7dbb2d03 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
@@ -462,6 +462,8 @@ static void esw_hw_init(struct rt305x_esw *esw)
u8 port_disable = 0;
u8 port_map = RT305X_ESW_PMAP_LLLLLL;
+ esw_reset(esw);
+
/* vodoo from original driver */
esw_w32(esw, 0xC8A07850, RT305X_ESW_REG_FCT0);
esw_w32(esw, 0x00000000, RT305X_ESW_REG_SGC2);