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>
This commit is contained in:
Nathan Hintz 2013-02-13 19:14:10 +00:00 committed by David S. Miller
parent 9f89ec8252
commit 4160815ffc

View 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 */