]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
PCI: Decouple IORESOURCE_ROM_ENABLE and PCI_ROM_ADDRESS_ENABLE
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 13 Jan 2017 21:31:38 +0000 (14:31 -0700)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 26 Jan 2017 16:37:06 +0000 (14:37 -0200)
commit26e0d0da28907152ddb2ae84fd81bed9e75d13ce
tree28af081e52b2430993c43db67681c702b2e643b2
parentdb24ae9a1d8d034e9360dc01a1336108441eb250
PCI: Decouple IORESOURCE_ROM_ENABLE and PCI_ROM_ADDRESS_ENABLE

BugLink: http://bugs.launchpad.net/bugs/1625318
Remove the assumption that IORESOURCE_ROM_ENABLE == PCI_ROM_ADDRESS_ENABLE.
PCI_ROM_ADDRESS_ENABLE is the ROM enable bit defined by the PCI spec, so if
we're reading or writing a BAR register value, that's what we should use.
IORESOURCE_ROM_ENABLE is a corresponding bit in struct resource flags.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
(cherry picked from commit 7a6d312b50e63f598f5b5914c4fd21878ac2b595)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/pci/probe.c