PCI: Mark resources as IORESOURCE_UNSET if we can't assign them
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 26 Feb 2014 18:25:58 +0000 (11:25 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 27 Feb 2014 17:43:32 +0000 (10:43 -0700)
commitbd064f0a231af336218838474ea45a64f1672190
treea1deda3444f1c2554e22c6969641352cc2cc8eb1
parentf44116ae881868ab72274df1eff48fdbde9898af
PCI: Mark resources as IORESOURCE_UNSET if we can't assign them

When assigning addresses to resources, mark them with IORESOURCE_UNSET
before we start and clear IORESOURCE_UNSET if assignment is successful.
That means that if we print the resource during assignment, we will show
the size, not a meaningless address.

Also, clear IORESOURCE_UNSET if we do assign an address, so we print the
address when it is valid.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
drivers/pci/quirks.c
drivers/pci/rom.c
drivers/pci/setup-res.c
This page took 0.032037 seconds and 5 git commands to generate.