ACPI / hotplug / PCI: Do not check SLOT_ENABLED in enable_device()
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Sat, 13 Jul 2013 21:27:26 +0000 (23:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Jul 2013 02:00:26 +0000 (04:00 +0200)
commit55502ddb2d83ada0661733361ec14b9cbef157a5
treeb67ac3c49fc57a4d76d848f81166bfe936c820fb
parentbc805a55392a7cb3e9b1251d00449c70e3967fc5
ACPI / hotplug / PCI: Do not check SLOT_ENABLED in enable_device()

With Thunderbolt you can daisy chain devices: connect new devices to
an already plugged one.  In that case the "hotplug slot" is already
enabled, but we still want to look for new PCI devices behind it.

Reuse enable_device() to scan for new PCI devices on enabled slots
and push the SLOT_ENABLED check up into acpiphp_enable_slot().

[rjw: Rebased, modified the changelog]
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/hotplug/acpiphp_glue.c