]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54df71730a37e3a2b96bb4873c151185fdd99c1e
tree1b058c348ce528d344020542f9b7371a4a37f279
parent3c5268a2f96f1df662d6e1a39106e700501a3f07
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