]> 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)
commit359ccb680665c033603d84d0b2d8066bee6844e4
tree7e9eec0fdf1dd33e9c245b7525d305e5a0ef7042
parent30e4acd154912d10736efa6f4f9354000e311ab2
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