Subject: [PATCH] [acpi ec] Re-enable the GPE after it has fired - Check ec->e_gpe_enable to determine when to do it Signed-off-by: Patrick Mochel --- drivers/acpi/drivers/ec/gpe.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) applies-to: 9e1e56fce7d120044c7dd02904a66a2f882ec37f 89366c4875c94852ff31ffeea3ff276daa64255a diff --git a/drivers/acpi/drivers/ec/gpe.c b/drivers/acpi/drivers/ec/gpe.c index 14f0dc1..b478071 100644 --- a/drivers/acpi/drivers/ec/gpe.c +++ b/drivers/acpi/drivers/ec/gpe.c @@ -73,6 +73,9 @@ static void gpe_query(void * context) dbg("Evaluating %s", obj); acpi_evaluate_object(ec->e_handle, obj, NULL, NULL); } + + if (ec->e_gpe_enable == ACPI_NOT_ISR) + acpi_enable_gpe(NULL, ec->e_gpe_bit, ACPI_NOT_ISR); } static u32 gpe_callback(void * data) @@ -97,6 +100,9 @@ static u32 gpe_callback(void * data) ACPI_INTERRUPT_NOT_HANDLED; } + if (ec->e_gpe_enable == ACPI_ISR) + acpi_enable_gpe(NULL, ec->e_gpe_bit, ACPI_ISR); + return ACPI_INTERRUPT_HANDLED; } --- 0.99.9.GIT