]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7024a82c369f78bb61a00bd2fd1cc2cd3e32199
treee81db44069a4e1a076198d71a39f4d0e6b5c49dd
parentb4affc37566abe7d9a627ec6d13769c5805f5c2b
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