Rafael J. Wysocki 683058e315 ACPI / hotplug: Use device offline/online for graceful hot-removal
Modify the generic ACPI hotplug code to be able to check if devices
scheduled for hot-removal may be gracefully removed from the system
using the device offline/online mechanism introduced previously.

Namely, make acpi_scan_hot_remove() handling device hot-removal call
device_offline() for all physical companions of the ACPI device nodes
involved in the operation and check the results.  If any of the
device_offline() calls fails, the function will not progress to the
removal phase (which cannot be aborted), unless its (new) force
argument is set (in case of a failing offline it will put the devices
offlined by it back online).

In support of 'forced' device hot-removal, add a new sysfs attribute
'force_remove' that will reside under /sys/firmware/acpi/hotplug/.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Toshi Kani <toshi.kani@hp.com>
2013-05-12 14:14:24 +02:00
..
2011-10-24 16:52:39 +02:00
evm
2011-07-18 12:29:40 -04:00
2010-10-21 20:21:03 -04:00
2013-03-23 16:11:31 -07:00
2012-03-28 18:41:23 +01:00
2011-03-31 11:26:23 -03:00
2012-04-23 14:23:32 +03:00
2012-11-20 21:26:38 +00:00
2011-03-22 04:53:09 -03:00
2008-11-12 17:17:18 -08:00
2011-03-31 11:26:23 -03:00
2012-11-16 02:56:59 +01:00
2011-04-29 18:09:34 -07:00
2009-02-18 15:37:56 -08:00
2009-09-23 07:39:48 -07:00
2008-04-19 19:10:28 -07:00
2012-06-25 13:48:15 +02:00
2008-07-24 10:47:17 -07:00
2008-04-18 08:56:07 -07:00
2009-06-18 13:04:04 -07:00