mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-02 01:20:47 +09:00
net: ftgmac100: use setbits_le32() in the reset method
Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
f95de0bd10
commit
591ffd98b0
@ -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)
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user