ACPI / hotplug: Generate online uevents for ACPI containers
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 21 Sep 2014 00:58:18 +0000 (02:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:52:16 +0000 (14:52 -0700)
commitb8b1c4733133c6fb536cdd0a5d54eb1d5165a0a7
tree6f778f95542f9e7f1e7713f19c7996794c7823ef
parentf42d85b90f364ecdc7cf42796c225123a8b79d44
ACPI / hotplug: Generate online uevents for ACPI containers

commit 8ab17fc92e49bc2b8fff9d220c19bf50ec9c1158 upstream.

Commit 46394fd01 (ACPI / hotplug: Move container-specific code out of
the core) removed the generation of "online" uevents for containers,
because "add" uevents are now generated for them automatically when
container system devices are registered.  However, there are user
space tools that need to be notified when the container and all of
its children have been enumerated, which doesn't happen any more.

For this reason, add a mechanism allowing "online" uevents to be
generated for ACPI containers after enumerating the container along
with all of its children.

Fixes: 46394fd01 (ACPI / hotplug: Move container-specific code out of the core)
Reported-and-tested-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/container.c
drivers/acpi/scan.c
include/acpi/acpi_bus.h