ACPI/PCI: Reset acpi_root_dev->domain to 0 when pci_ignore_seg is set
authorJiang Liu <jiang.liu@linux.intel.com>
Wed, 14 Oct 2015 06:29:40 +0000 (14:29 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Oct 2015 20:18:52 +0000 (22:18 +0200)
Reset acpi_root_dev->domain to 0 when pci_ignore_seg is set to keep
consistence between ACPI PCI root device and PCI host bridge device.

Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/pci/acpi.c

index ff9911707160ac7691e119aad62f32d7f61c143a..5bc018559cc4b56b07f9fc6e2bb4d6f331bc2c0d 100644 (file)
@@ -401,7 +401,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
        int node;
 
        if (pci_ignore_seg)
-               domain = 0;
+               root->segment = domain = 0;
 
        if (domain && !pci_domains_supported) {
                printk(KERN_WARNING "pci_bus %04x:%02x: "