From: Almer S. Tigelaar Date: Sun, 12 Apr 2009 11:26:29 +0000 (+0000) Subject: ACPI: EC: Fix ACPI EC resume non-query interrupt message X-Git-Tag: v2.6.30-rc4~50^2~11^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aa63f038f042fd1acd6e720a95df72857db0bc7;p=pandora-kernel.git ACPI: EC: Fix ACPI EC resume non-query interrupt message When resuming from standby (on a laptop) I see the following message in my kernel.log: "ACPI: EC: non-query interrupt received, switching to interrupt mode" This apparently prevented sony-laptop to properly restore the brightness level on resume. The cause: In drivers/acpi/ec.c the acpi_ec_suspend function clears the GPE mode bit, but this is not restored in acpi_ec_resume (the function below it). The patch below fixes this by properly restoring the GPE_MODE bit. Tested and confirmed to work. Signed-off-by: Almer S. Tigelaar Signed-off-by: Mattia Dongili Acked-by: Alexey Starikovskiy Signed-off-by: Len Brown --- Reading git-diff-tree failed