From: Cédric Le Goater Date: Mon, 29 Oct 2018 06:06:32 +0000 (+0100) Subject: net: ftgmac100: use setbits_le32() in the reset method X-Git-Tag: v2019.01-rc1~36^2^2~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=591ffd98b05ce06ff1412b0322d5b063b0953add;p=oweals%2Fu-boot.git net: ftgmac100: use setbits_le32() in the reset method Signed-off-by: Cédric Le Goater Reviewed-by: Joel Stanley Acked-by: Joe Hershberger --- diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c index 67a7c73503..78cd9df629 100644 --- a/drivers/net/ftgmac100.c +++ b/drivers/net/ftgmac100.c @@ -331,7 +331,7 @@ static void ftgmac100_reset(struct ftgmac100_data *priv) debug("%s()\n", __func__); - writel(FTGMAC100_MACCR_SW_RST, &ftgmac100->maccr); + setbits_le32(&ftgmac100->maccr, FTGMAC100_MACCR_SW_RST); while (readl(&ftgmac100->maccr) & FTGMAC100_MACCR_SW_RST) ;