aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/emulex/benet/be_main.c
diff options
context:
space:
mode:
authorKleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>2012-07-20 09:55:43 +0000
committerDavid S. Miller <davem@davemloft.net>2012-07-25 15:24:13 -0700
commit57dbf29a54bda5773f9ed1d00e3cc633294259da (patch)
tree311f1973354a10fa997db812299982b560dc821f /drivers/net/ethernet/emulex/benet/be_main.c
parentcdc-ncm: tag Ericsson WWAN devices (eg F5521gw) with FLAG_WWAN (diff)
downloadlinux-dev-57dbf29a54bda5773f9ed1d00e3cc633294259da.tar.xz
linux-dev-57dbf29a54bda5773f9ed1d00e3cc633294259da.zip
mlx4: Add support for EEH error recovery
Currently the mlx4 drivers don't have the necessary callbacks to implement EEH errors detection and recovery, so the PCI layer uses the probe and remove callbacks to try to recover the device after an error on the bus. However, these callbacks have race conditions with the internal catastrophic error recovery functions, which will also detect the error and this can cause the system to crash if both EEH and catas functions try to reset the device. This patch adds the necessary error recovery callbacks and makes sure that the internal catastrophic error functions will not try to reset the device in such scenarios. It also adds some calls to pci_channel_offline() to suppress reads/writes on the bus when the slot cannot accept I/O operations so we prevent unnecessary accesses to the bus and speed up the device removal. Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com> Acked-by: Shlomo Pongratz <shlomop@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions