ionic: prevent pci disable of already disabled device
authorShannon Nelson <shannon.nelson@amd.com>
Mon, 11 Dec 2023 18:58:00 +0000 (10:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2023 12:35:55 +0000 (12:35 +0000)
commit13943d6c82730a2a4e40e05d6deaca26a8de0a4d
treec6240394c3f78e92d151cdcc45fe80f8f04423e9
parentca5fdf9a7c5b65968c718f2be159cda4c13556a1
ionic: prevent pci disable of already disabled device

If a reset fails, the PCI device is left in a disabled
state, so don't try to disable it again on driver remove.
This prevents a scary looking WARN trace in the kernel log.

    ionic 0000:2b:00.0: disabling already-disabled device

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c