forked from luck/tmp_suning_uos_patched
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:
parent
9f89ec8252
commit
4160815ffc
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user