android_kernel_motorola_sm6225/drivers/acpi
Alex Chiang 828f37683e PCI: update pci_create_slot() to take a 'hotplug' param
Slot detection drivers can co-exist with hotplug drivers. The names
of the detected/claimed slots may be different depending on module
load order.

For legacy reasons, we need to allow hotplug drivers to override
the slot name if a detection driver is loaded first (and they find
the same slots).

Creating and overriding slot names should be an atomic operation,
otherwise you get a locking nightmare as various drivers race to
call pci_create_slot().

pci_create_slot() is already serialized by grabbing the pci_bus_sem.

We update the API and add a 'hotplug' param, which is:

	set if the caller is a hotplug driver
	NULL if the caller is a detection driver

pci_create_slot() does not actually use the 'hotplug' parameter in this
patch. A later patch will add the logic that uses it.

Cc: kristen.c.accardi@intel.com
Cc: matthew@wil.cx
Acked-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2008-10-22 16:42:38 -07:00
..
dispatcher ACPI: Change package length error to warning 2008-08-18 04:14:59 +02:00
events ACPI: Enhance /sys/firmware/interrupts to allow enable/disable/clear from user-space 2008-07-16 23:27:04 +02:00
executer ACPICA: Fix possible memory leak in Unload() operator 2008-08-15 02:11:59 +02:00
hardware ACPI: Enhance /sys/firmware/interrupts to allow enable/disable/clear from user-space 2008-07-16 23:27:04 +02:00
namespace ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
parser ACPICA: Eliminate acpi_native_uint type v2 2008-07-16 23:27:03 +02:00
resources ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
sleep acpi: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
tables Revert "Fix FADT parsing" 2008-07-18 01:42:20 +02:00
utilities ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
ac.c ACPI: no AC status notification 2008-06-14 01:26:37 -04:00
acpi_memhotplug.c ACPI: autoload modules - Create __mod_acpi_device_table symbol for all ACPI drivers 2007-07-23 13:56:42 -04:00
asus_acpi.c Remove newline from the description of module parameters 2008-08-01 12:46:41 -07:00
battery.c x86: sysfs: kill owner field from attribute 2008-10-20 08:52:42 -07:00
bay.c APCI: revert duplicated patch 2008-07-20 17:14:57 -07:00
blacklist.c ACPI: DMI: quirk for FSC ESPRIMO Mobile V5505 2008-02-14 02:43:39 -05:00
bus.c Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2008-07-16 17:25:46 -07:00
button.c acpi: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
cm_sbs.c ACPI: clean up ACPI_MODULE_NAME() use 2007-02-12 22:42:12 -05:00
container.c ACPI: autoload modules - Create __mod_acpi_device_table symbol for all ACPI drivers 2007-07-23 13:56:42 -04:00
debug.c ACPI: add control method tracing support 2007-11-19 12:25:46 -05:00
dock.c ACPI: Properly clear flags on false-positives and send uevent on sudden unplug 2008-08-15 03:02:42 +02:00
ec.c ACPI: Avoid bogus EC timeout when EC is in Polling mode 2008-08-15 03:13:06 +02:00
event.c acpi: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
fan.c driver core: fix a lot of printk usages of bus_id 2008-07-21 21:54:53 -07:00
glue.c rtc-cmos: move wake setup from ACPI glue into RTC driver 2008-10-14 16:08:21 -07:00
Kconfig acpi: Make ACPI_TOSHIBA depend on INPUT. 2008-10-12 21:22:31 -07:00
Makefile Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2008-07-16 17:25:46 -07:00
numa.c ACPICA: Update DMAR and SRAT table definitions 2008-07-16 23:27:04 +02:00
osl.c flush kacpi_notify_wq before removing notify handler 2008-04-29 02:34:42 -04:00
pci_bind.c ACPI: misc cleanups 2008-02-07 03:33:23 -05:00
pci_irq.c ACPI: use dev_printk when possible 2008-07-16 23:27:07 +02:00
pci_link.c ACPI: bounds check IRQ to prevent memory corruption 2008-08-15 03:17:07 +02:00
pci_root.c ACPI: fix section mismatch in acpi_pci_root_add 2008-02-21 02:56:32 -05:00
pci_slot.c PCI: update pci_create_slot() to take a 'hotplug' param 2008-10-22 16:42:38 -07:00
power.c ACPI: Introduce new device wakeup flag 'prepared' 2008-07-07 16:26:14 -07:00
processor_core.c Merge branch 'compal-fix' into release-2.6.27 2008-08-21 08:44:21 +02:00
processor_idle.c acpi: trivial cleanups 2008-08-15 02:29:06 +02:00
processor_perflib.c ACPI: Fix now signed module parameter. 2008-08-18 08:38:36 +02:00
processor_thermal.c acpi: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
processor_throttling.c cpumask: change cpumask_of_cpu_ptr to use new cpumask_of_cpu 2008-07-26 16:40:33 +02:00
reboot.c Add the ability to reset the machine using the RESET_REG in ACPI's FADT table. 2008-07-16 23:27:08 +02:00
sbs.c x86: sysfs: kill owner field from attribute 2008-10-20 08:52:42 -07:00
sbshc.c ACPI: Avoid bogus timeout about SMbus check 2008-09-04 14:32:28 +02:00
sbshc.h ACPI: SBS: Ignore alarms coming from unknown devices 2007-12-14 15:14:06 -05:00
scan.c driver core: fix a lot of printk usages of bus_id 2008-07-21 21:54:53 -07:00
system.c x86: sysfs: kill owner field from attribute 2008-10-20 08:52:42 -07:00
tables.c acpi: add checking for NULL early param 2008-08-21 08:45:39 +02:00
thermal.c Merge branch 'release-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-acpi-2.6 2008-07-24 13:57:37 -07:00
toshiba_acpi.c toshiba_acpi: Add support for bluetooth toggling through rfkill (v8) 2008-09-05 16:17:45 -04:00
utils.c ACPICA: Fixes for external Reference Objects 2008-04-22 19:08:51 -04:00
video.c Merge branch 'release-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-acpi-2.6 2008-07-24 13:57:37 -07:00
wmi.c ACPI: WMI: Set instance for query block calls 2008-08-15 02:25:01 +02:00