]> 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)
commite7806fff0ff10c4b4f401e310173aa04cd0e16be
tree1b058c348ce528d344020542f9b7371a4a37f279
parent766452a6b1420b3f8350f3fee800d90fd49ded7c
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