bnx2: Fix reset bug on 5709
authorEddie Wai <waie@broadcom.com>
Wed, 24 Nov 2010 13:48:54 +0000 (13:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Nov 2010 18:47:19 +0000 (10:47 -0800)
commita5dac108d57072eec4d6745f32c162524509f2cb
treee5177d7c181866ecea357ef1a9c0109d7ca39b90
parent19eb5cc559f716dc98ce03a5bad6030fdc71e897
bnx2: Fix reset bug on 5709

The 5709 chip requires the BNX2_MISC_NEW_CORE_CTL_DMA_ENABLE bit to be
cleared and polling for pending DMAs to complete before chip reset.
Without this step, we've seen NMIs during repeated resets of the chip.

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