projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f89ec8
)
bgmac: add read of interrupt mask after disabling interrupts
author
Nathan Hintz
<nlhintz@hotmail.com>
Wed, 13 Feb 2013 19:14:10 +0000
(19:14 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 14 Feb 2013 18:23:24 +0000
(13:23 -0500)
The specs prescribe an immediate read of the interrupt mask after
disabling interrupts. This patch updates the driver to match the
specs.
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/broadcom/bgmac.c
b/drivers/net/ethernet/broadcom/bgmac.c
index 52d9a544c8ca374855df02155a097dc96b69761c..d34109004ee650196bffca60c7af02694ce488c6 100644
(file)
--- a/
drivers/net/ethernet/broadcom/bgmac.c
+++ b/
drivers/net/ethernet/broadcom/bgmac.c
@@
-974,6
+974,7
@@
static void bgmac_chip_intrs_on(struct bgmac *bgmac)
static void bgmac_chip_intrs_off(struct bgmac *bgmac)
{
bgmac_write(bgmac, BGMAC_INT_MASK, 0);
+ bgmac_read(bgmac, BGMAC_INT_MASK);
}
/* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/gmac_enable */