Re: [Patch v1 1/3] ACPI: add callback prepare() into acpi_hotplug_handler

2014-01-21 Thread Toshi Kani
On Wed, 2014-01-22 at 00:17 +0100, Rafael J. Wysocki wrote: > On Tuesday, January 21, 2014 02:14:57 PM Toshi Kani wrote: > > On Sat, 2014-01-18 at 10:48 +0800, Jiang Liu wrote: > > > Add callback prepare() into acpi_hotplug_handler, which will get called > > > at the very beginning of ACPI hotplug

Re: [Patch v1 1/3] ACPI: add callback prepare() into acpi_hotplug_handler

2014-01-21 Thread Rafael J. Wysocki
On Tuesday, January 21, 2014 02:14:57 PM Toshi Kani wrote: > On Sat, 2014-01-18 at 10:48 +0800, Jiang Liu wrote: > > Add callback prepare() into acpi_hotplug_handler, which will get called > > at the very beginning of ACPI hotplug event handler. The ACPI core will > > ignore the event if prepare()

Re: [Patch v1 1/3] ACPI: add callback prepare() into acpi_hotplug_handler

2014-01-21 Thread Toshi Kani
On Sat, 2014-01-18 at 10:48 +0800, Jiang Liu wrote: > Add callback prepare() into acpi_hotplug_handler, which will get called > at the very beginning of ACPI hotplug event handler. The ACPI core will > ignore the event if prepare() returns NOTIFY_STOP. > > Signed-off-by: Jiang Liu > --- > driver

[Patch v1 1/3] ACPI: add callback prepare() into acpi_hotplug_handler

2014-01-17 Thread Jiang Liu
Add callback prepare() into acpi_hotplug_handler, which will get called at the very beginning of ACPI hotplug event handler. The ACPI core will ignore the event if prepare() returns NOTIFY_STOP. Signed-off-by: Jiang Liu --- drivers/acpi/scan.c |4 include/acpi/acpi_bus.h |1 + 2