PCI: pciehp: Configure hot-added display devices
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 28 Aug 2014 17:12:50 +0000 (11:12 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 13 Sep 2014 02:01:20 +0000 (20:01 -0600)
We configure cache line size and other settings of hot-added devices, e.g.,
based on ACPI _HPP or _HPX methods.  Previously we skipped this for display
devices, but ACPI rev 5.0, sec 6.2.7 and 6.2.8 have no requirement to skip
them.

Remove the check so we configure display devices the same way we configure
other devices.

See also ac81860ea073 ("PCI: hotplug: pciehp: Removed check for hotplug of
display devices").

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
drivers/pci/hotplug/pciehp_pci.c

index 5f871f4c4af10944e3417712f99194c2c1936349..b66812703415fc2968b556ef790ac445d9f46efc 100644 (file)
@@ -66,12 +66,8 @@ int pciehp_configure_device(struct slot *p_slot)
 
        pci_assign_unassigned_bridge_resources(bridge);
 
-       list_for_each_entry(dev, &parent->devices, bus_list) {
-               if ((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY)
-                       continue;
-
+       list_for_each_entry(dev, &parent->devices, bus_list)
                pci_configure_slot(dev);
-       }
 
        pci_bus_add_devices(parent);