]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Prevent panic during DMAE timeout
authorDmitry Kravkov <dmitry@broadcom.com>
Sun, 17 Nov 2013 06:59:27 +0000 (08:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Nov 2013 20:45:44 +0000 (15:45 -0500)
commit046288efc53199f6349b1cb71429ea19302d4a03
tree450f5bd6a6e2f4f03842780e4dd7e0a19ba36eda
parentfa4612537ce7b3da25cb904f702ec146eb3ef047
bnx2x: Prevent panic during DMAE timeout

If chip enters a recovery flow just after the driver issues a DMAE request
the DMAE will timeout. Current code will cause a bnx2x_panic() as a result,
which means interface will no longer be usable (regardless of the recovery
results), as bnx2x_panic() is irreversible for the driver.

As this is a possible flow, the panic should be reached only when driver
is compiled with STOP_ON_ERROR.

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h