Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 */