ACPI: Verify device status after eject
authorToshi Kani <toshi.kani@hp.com>
Wed, 13 Mar 2013 19:29:26 +0000 (19:29 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 24 Mar 2013 23:18:43 +0000 (00:18 +0100)
commit882fd12e641b612bcf31620f9b1b7bb03f8e9ab5
treee9814f8c21c4f07a7a028c6c872c5fefc4d0d9ef
parentea6a4581ce11bd1a5dca421c01b11d1ff2867c2f
ACPI: Verify device status after eject

ACPI spec states that the OS evaluates _STA after calling _EJ0
in order to verify if eject was successful.  Added a check to
verify if the enabled bit of the status value is cleared after
_EJ0.

Note, the present bit is not checked since some FW implementations
do not clear the present bit until the hardware is physically
removed.

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c