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 52d9a544c8ca374855df02155a097dc96b69761c..d34109004ee650196bffca60c7af02694ce488c6 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 */