net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()
authorDavid Wu <david.wu@rock-chips.com>
Thu, 10 Aug 2017 13:56:43 +0000 (21:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 21:28:58 +0000 (14:28 -0700)
This is wrong setting for rk3328_set_to_rmii(), so remove it.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c

index f0df5193f047ba534ace8e012df673f5c6cad83f..a8e8fd579d07d0d14a213960b307d09451a20d0a 100644 (file)
@@ -365,9 +365,6 @@ static void rk3328_set_to_rmii(struct rk_priv_data *bsp_priv)
        regmap_write(bsp_priv->grf, RK3328_GRF_MAC_CON1,
                     RK3328_GMAC_PHY_INTF_SEL_RMII |
                     RK3328_GMAC_RMII_MODE);
-
-       /* set MAC to RMII mode */
-       regmap_write(bsp_priv->grf, RK3328_GRF_MAC_CON1, GRF_BIT(11));
 }
 
 static void rk3328_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed)