From: Janine Hagemann Date: Tue, 28 Aug 2018 06:25:04 +0000 (+0200) Subject: net: gmac_rockchip: Fix a register write in rk3328_gmac_set_to_rgmii X-Git-Tag: v2018.11-rc2~64^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=04acabd22c2473c7dd65c3a5f900cb80d9619cc0;p=oweals%2Fu-boot.git net: gmac_rockchip: Fix a register write in rk3328_gmac_set_to_rgmii We have to use RK3328_RXCLK_DLY_ENA_GMAC_ENABLE instead of RK3328_RXCLK_DLY_ENA_GMAC_MASK in rk3328_gmac_set_to_rgmii() to enable the RX delay. The MASK was used in a wrong way. Signed-off-by: Janine Hagemann Reviewed-by: Philipp Tomisch Acked-by: Joe Hershberger --- diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c index 30a24d1947..0f91731172 100644 --- a/drivers/net/gmac_rockchip.c +++ b/drivers/net/gmac_rockchip.c @@ -350,7 +350,7 @@ static void rk3328_gmac_set_to_rgmii(struct gmac_rockchip_platdata *pdata) RK3328_RXCLK_DLY_ENA_GMAC_MASK | RK3328_TXCLK_DLY_ENA_GMAC_MASK, RK3328_GMAC_PHY_INTF_SEL_RGMII | - RK3328_RXCLK_DLY_ENA_GMAC_MASK | + RK3328_RXCLK_DLY_ENA_GMAC_ENABLE | RK3328_TXCLK_DLY_ENA_GMAC_ENABLE); rk_clrsetreg(&grf->mac_con[0],