diff options
Diffstat (limited to 'drivers/acpi/events/evgpe.c')
-rw-r--r-- | drivers/acpi/events/evgpe.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/acpi/events/evgpe.c b/drivers/acpi/events/evgpe.c index f64f977dd3d5..7d7b81af972e 100644 --- a/drivers/acpi/events/evgpe.c +++ b/drivers/acpi/events/evgpe.c | |||
@@ -207,6 +207,7 @@ acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info, | |||
207 | ACPI_SET_BIT(gpe_event_info->flags, ACPI_GPE_RUN_ENABLED); | 207 | ACPI_SET_BIT(gpe_event_info->flags, ACPI_GPE_RUN_ENABLED); |
208 | 208 | ||
209 | if (write_to_hardware) { | 209 | if (write_to_hardware) { |
210 | |||
210 | /* Clear the GPE (of stale events), then enable it */ | 211 | /* Clear the GPE (of stale events), then enable it */ |
211 | 212 | ||
212 | status = acpi_hw_clear_gpe(gpe_event_info); | 213 | status = acpi_hw_clear_gpe(gpe_event_info); |
@@ -313,6 +314,7 @@ struct acpi_gpe_event_info *acpi_ev_get_gpe_event_info(acpi_handle gpe_device, | |||
313 | /* A NULL gpe_block means use the FADT-defined GPE block(s) */ | 314 | /* A NULL gpe_block means use the FADT-defined GPE block(s) */ |
314 | 315 | ||
315 | if (!gpe_device) { | 316 | if (!gpe_device) { |
317 | |||
316 | /* Examine GPE Block 0 and 1 (These blocks are permanent) */ | 318 | /* Examine GPE Block 0 and 1 (These blocks are permanent) */ |
317 | 319 | ||
318 | for (i = 0; i < ACPI_MAX_GPE_BLOCKS; i++) { | 320 | for (i = 0; i < ACPI_MAX_GPE_BLOCKS; i++) { |
@@ -402,6 +404,7 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list) | |||
402 | * Find all currently active GP events. | 404 | * Find all currently active GP events. |
403 | */ | 405 | */ |
404 | for (i = 0; i < gpe_block->register_count; i++) { | 406 | for (i = 0; i < gpe_block->register_count; i++) { |
407 | |||
405 | /* Get the next status/enable pair */ | 408 | /* Get the next status/enable pair */ |
406 | 409 | ||
407 | gpe_register_info = &gpe_block->register_info[i]; | 410 | gpe_register_info = &gpe_block->register_info[i]; |
@@ -437,6 +440,7 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list) | |||
437 | 440 | ||
438 | enabled_status_byte = (u8) (status_reg & enable_reg); | 441 | enabled_status_byte = (u8) (status_reg & enable_reg); |
439 | if (!enabled_status_byte) { | 442 | if (!enabled_status_byte) { |
443 | |||
440 | /* No active GPEs in this register, move on */ | 444 | /* No active GPEs in this register, move on */ |
441 | 445 | ||
442 | continue; | 446 | continue; |
@@ -445,6 +449,7 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list) | |||
445 | /* Now look at the individual GPEs in this byte register */ | 449 | /* Now look at the individual GPEs in this byte register */ |
446 | 450 | ||
447 | for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { | 451 | for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { |
452 | |||
448 | /* Examine one GPE bit */ | 453 | /* Examine one GPE bit */ |
449 | 454 | ||
450 | if (enabled_status_byte & | 455 | if (enabled_status_byte & |