ramips: ethernet: ralink: move reset of the esw into the esw instead of fe
[openwrt/openwrt.git] / target / linux / ramips / files / drivers / net / ethernet / ralink / esw_rt3050.c
index cd6ae075950e71ffe8b0f5287124eb09f5ac741f..4a7dbb2d03952a3c226a40bc9b0fe2d50472ebb2 100644 (file)
@@ -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);