bnx2: Try to recover from PCI block reset
authorMichael Chan <mchan@broadcom.com>
Mon, 16 Jul 2012 14:25:56 +0000 (14:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 06:12:02 +0000 (23:12 -0700)
commitefdfad3205403e1d1c5c0bdcbdb647ddd89bfaa3
tree1b058c348ce528d344020542f9b7371a4a37f279
parentaed93e0bf493535c25c27270001226bb1dd379b2
bnx2: Try to recover from PCI block reset

If the PCI block has reset, the memory enable bit will be reset and
the device will not respond to MMIO access.  bnx2_reset_task() currently
will not recover when this happens.  Add code to detect this condition
and restore the PCI state.  This scenario has been reported by some
users.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c