PCI: Mark invalid BARs as unassigned
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Mar 2015 17:30:06 +0000 (12:30 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Mar 2015 23:52:12 +0000 (18:52 -0500)
commitc770cb4cb505c096eaca0fbbca3169c3aa4c3474
tree5a6a5aad5fe73d4f9c80d66cac666232949533e7
parentf7834c092c42995e9f3611b7d186e9dfdb8430cc
PCI: Mark invalid BARs as unassigned

If a BAR is not inside any upstream bridge window, or if it conflicts with
another resource, mark it as IORESOURCE_UNSET so we don't try to use it.
We may be able to assign a different address for it.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/setup-res.c