Thread (10 messages) 10 messages, 3 authors, 2017-09-07

[PATCH v3 3/3] PCI: Avoid slot reset for Cavium cn8xxx root ports

From: Jan Glauber <hidden>
Date: 2017-09-07 07:49:26
Also in: kvm, linux-pci, lkml

On Thu, Sep 07, 2017 at 09:40:11AM +0200, Jan Glauber wrote:
quoted hunk ↗ jump to hunk
So what if we add an additional check like:
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index fdf65a6..389db4b 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -4389,6 +4389,9 @@ static bool pci_slot_resetable(struct pci_slot *slot)
 {
        struct pci_dev *dev;
 
+       if (slot->bus->self & 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;
Obviously I meant:
if (slot->bus->self->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET)

--Jan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help