]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: More Shutdown revisions
authorYuval Mintz <yuvalmin@broadcom.com>
Mon, 27 Jan 2014 15:11:58 +0000 (17:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2014 20:57:31 +0000 (12:57 -0800)
commit3fe7e4b7434e2b39d04d4853097e1fcb005cb0b2
tree134ff10a15842cda7db8f92fd84a438112357a2d
parentba9c092009616b1c759dcd0e6bcb014136389c67
bnx2x: More Shutdown revisions

Submission 47310f9 "bnx2x: Don't release PCI bars on shutdown" separated
the PCI remove and shutdown flows, but pci_disable_device() is still
being called on both.
As a result, a dev_WARN_ONCE will be hit during shutdown for every bnx2x
VF probed on a hypervisor (as its shutdown callback will be called and later
pci_disable_sriov() will call its remove callback).

This calls the pci_disable_device() only on the remove flow.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c