Commit 4160815f authored by Nathan Hintz's avatar Nathan Hintz Committed by David S. Miller

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: default avatarNathan Hintz <nlhintz@hotmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9f89ec82
...@@ -974,6 +974,7 @@ static void bgmac_chip_intrs_on(struct bgmac *bgmac) ...@@ -974,6 +974,7 @@ static void bgmac_chip_intrs_on(struct bgmac *bgmac)
static void bgmac_chip_intrs_off(struct bgmac *bgmac) static void bgmac_chip_intrs_off(struct bgmac *bgmac)
{ {
bgmac_write(bgmac, BGMAC_INT_MASK, 0); bgmac_write(bgmac, BGMAC_INT_MASK, 0);
bgmac_read(bgmac, BGMAC_INT_MASK);
} }
/* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/gmac_enable */ /* http://bcm-v4.sipsolutions.net/mac-gbit/gmac/gmac_enable */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment