bnx2x: Wait for MCP validity during AER
authorYuval Mintz <yuvalmin@broadcom.com>
Wed, 22 May 2013 21:21:51 +0000 (21:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2013 01:49:30 +0000 (18:49 -0700)
commite68072ef46bcfb609ea16d45f115896a0dfbd3ff
treee81db44069a4e1a076198d71a39f4d0e6b5c49dd
parent178135c11611c02161c5b64aeba341d777f2d64d
bnx2x: Wait for MCP validity during AER

During PCIe advanced error recovery, the secondary bus reset will cause FW
to reset; This will cause the shared memory between it and the driver to be
invalidated.

During the driver's recovery flow, the driver should not make any assumption
on the validity of that memory and instead re-initialize it.

This also removes a redundant re-initialization of a previously
initialized mutex.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@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_main.c