]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9fa60edec99b3811e1a7653a0c80359e94b05351
treef076cf9a3537499eadc487597d31153f7660aa5c
parentdd74777da2f0cb9a5399506ff64cbc404dc25c89
bnx2: Fix shutdown sequence

The pci shutdown handler added in:

    bnx2: Add pci shutdown handler
    commit 1920030e4215e9bb320d8c5c946b75e4b54736af

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