bgmac: add read of interrupt mask after disabling interrupts
authorNathan Hintz <nlhintz@hotmail.com>
Wed, 13 Feb 2013 19:14:10 +0000 (19:14 +0000)
committerDavid 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

index 52d9a54..d341090 100644 (file)
@@ -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 */