ACPI / scan: Always call acpi_bus_scan() for bus check notifications
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Jul 2013 00:01:53 +0000 (02:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2013 08:50:58 +0000 (16:50 +0800)
commit9d80c9e6f3345b343b9a095e8591f7c8a164b2c0
tree738d75c165a6c5bda08aaa15b24b6a78f0b6bb2b
parent8acd5b1eaaf5b06ca149e697ed2a017a748bcd57
ACPI / scan: Always call acpi_bus_scan() for bus check notifications

commit 8832f7e43fa7f0f19bd54e13766a825dd1ed4d6f upstream.

An ACPI_NOTIFY_BUS_CHECK notification means that we should scan the
entire namespace starting from the given handle even if the device
represented by that handle is present (other devices below it may
just have appeared).

For this reason, modify acpi_scan_bus_device_check() to always run
acpi_bus_scan() if the notification being handled is of type
ACPI_NOTIFY_BUS_CHECK.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/scan.c