summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom
diff options
context:
space:
mode:
authorNathan Hintz <nlhintz@hotmail.com>2013-02-13 20:14:10 +0100
committerDavid S. Miller <davem@davemloft.net>2013-02-14 19:23:24 +0100
commit4160815ffcaed68a976ba3cfe0131da3ae2b2615 (patch)
treee12f07c21b741961f10e4d1b84dac3f694f5299f /drivers/net/ethernet/broadcom
parentbridge: use __u16 in if_bridge.h (diff)
downloadlinux-4160815ffcaed68a976ba3cfe0131da3ae2b2615.tar.xz
linux-4160815ffcaed68a976ba3cfe0131da3ae2b2615.zip
bgmac: add read of interrupt mask after disabling interrupts
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom')
-rw-r--r--drivers/net/ethernet/broadcom/bgmac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bgmac.c b/drivers/net/ethernet/broadcom/bgmac.c
index 52d9a544c8ca..d34109004ee6 100644
--- 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 */