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)
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

Simple merge