]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Handle a rarely missed interrupt
authorYaniv Rosner <yaniv.rosner@broadcom.com>
Sun, 2 Dec 2012 04:05:54 +0000 (04:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2012 01:23:00 +0000 (20:23 -0500)
commitb53d88dd0a5a73f63056e28a738998ccf62d35cb
tree7e9eec0fdf1dd33e9c245b7525d305e5a0ef7042
parentcad84f92785428ac17c861cd7924127f1b7789bf
bnx2x: Handle a rarely missed interrupt

A rare case of no link due to a missed interrupt may occur due to a
race condition between acknowledging the IGU via the BAR and restoring the NIG
interrupt mask via the GRC.
To solve it, we wait for the IGU ack command to finish prior to restoring the
NIG interrupt mask.

Signed-off-by: Yaniv Rosner <yaniv.rosner@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c