projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f95de0b
)
net: ftgmac100: use setbits_le32() in the reset method
author
Cédric Le Goater
<clg@kaod.org>
Mon, 29 Oct 2018 06:06:32 +0000
(07:06 +0100)
committer
Joe Hershberger
<joe.hershberger@ni.com>
Mon, 5 Nov 2018 16:41:56 +0000
(10:41 -0600)
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>
drivers/net/ftgmac100.c
patch
|
blob
|
history
diff --git
a/drivers/net/ftgmac100.c
b/drivers/net/ftgmac100.c
index 67a7c73503c59158b9dacda0b2619436128e6d59..78cd9df6298677f8d0cf0ae0007f283951b7fe4a 100644
(file)
--- 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)
;