bnx2: Fix shutdown sequence
authorMichael Chan <mchan@broadcom.com>
Sun, 9 Mar 2014 23:45:32 +0000 (15:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Mar 2014 23:02:27 +0000 (19:02 -0400)
commita8d9bc2e9f5d1c5a25e33cec096d2a1652d3fd52
treef076cf9a3537499eadc487597d31153f7660aa5c
parentc88507fbad8055297c1d1e21e599f46960cbee39
bnx2: Fix shutdown sequence

The pci shutdown handler added in:

    bnx2: Add pci shutdown handler
    commit 25bfb1dd4ba3b2d9a49ce9d9b0cd7be1840e15ed

created a shutdown down sequence without chip reset if the device was
never brought up.  This can cause the firmware to shutdown the PHY
prematurely and cause MMIO read cycles to be unresponsive.  On some
systems, it may generate NMI in the bnx2's pci shutdown handler.

The fix is to tell the firmware not to shutdown the PHY if there was
no prior chip reset.

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