Message ID | 1441877628-28879-1-git-send-email-lorenzo.pieralisi@arm.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 508cc56..6de55d0 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -733,6 +733,13 @@ int pci_claim_bridge_resource(struct pci_dev *bridge, int i) return -EINVAL; } + /* + * Clear the IORESOURCE_UNSET flag set by the previous + * pci_claim_resource() failure so that the resource + * claiming can actually be carried out + */ + bridge->resource[i].flags &= ~IORESOURCE_UNSET; + if (pci_claim_resource(bridge, i) == 0) return 0; /* claimed a smaller window */