diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 74f1c57ab93b..3e0557bb02c8 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -4424,6 +4424,10 @@ static bool pci_slot_resetable(struct pci_slot *slot) { struct pci_dev *dev; + if (slot->bus->self && + (slot->bus->self->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET)) + return false; + list_for_each_entry(dev, &slot->bus->devices, bus_list) { if (!dev->slot || dev->slot != slot) continue;