Clarify the previous commit. AcpiFinishGpe() will not clear GPE for us

because we set it to edge-trigger.
This commit is contained in:
Jung-uk Kim 2011-01-04 17:06:03 +00:00
parent b5e61aab00
commit 000d939024
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216965

View File

@ -685,10 +685,12 @@ EcGpeQueryHandler(void *Context)
device_printf(sc->ec_dev, "evaluation of query method %s failed: %s\n",
qxx, AcpiFormatException(Status));
}
/* Reenable runtime GPE if its execution was deferred. */
if (sci_enqueued) {
Status = AcpiFinishGpe(sc->ec_gpehandle, sc->ec_gpebit);
if (ACPI_FAILURE(Status))
device_printf(sc->ec_dev, "clearing GPE failed: %s\n",
device_printf(sc->ec_dev, "reenabling runtime GPE failed: %s\n",
AcpiFormatException(Status));
}
}