acpi: Enable GPE for button and lid, if they have _PRW object
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 17 Apr 2011 05:00:17 +0000 (13:00 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 17 Apr 2011 05:00:17 +0000 (13:00 +0800)
commit7a7d9bbd427dc2419972a0001a56101aefc68437
tree4f8fb0235afebad28a463484a0ab4a752990dd46
parent3e32463a96bef8b193120b7f7ed7b3ca73522c65
acpi: Enable GPE for button and lid, if they have _PRW object

For devices which has _PRW object, AcpiSetupGpeForWake() will be called,
however, AcpiSetupGpeForWake() will disable GPE, which causes devices
like button and lid to stop function if they have _PRW object.  So for
button and lid, we explicitly enable GPE if they have _PRW object.

Reported-by: y0netan1@
sys/dev/acpica5/acpi_button.c
sys/dev/acpica5/acpi_lid.c