diff options
| -rw-r--r-- | drivers/acpi/acpica/achware.h | 3 | ||||
| -rw-r--r-- | drivers/acpi/acpica/evgpe.c | 8 | ||||
| -rw-r--r-- | drivers/acpi/acpica/hwgpe.c | 25 |
3 files changed, 6 insertions, 30 deletions
diff --git a/drivers/acpi/acpica/achware.h b/drivers/acpi/acpica/achware.h index c73144c9a395..120b3af56596 100644 --- a/drivers/acpi/acpica/achware.h +++ b/drivers/acpi/acpica/achware.h | |||
| @@ -97,9 +97,6 @@ acpi_status | |||
| 97 | acpi_hw_low_set_gpe(struct acpi_gpe_event_info *gpe_event_info, u8 action); | 97 | acpi_hw_low_set_gpe(struct acpi_gpe_event_info *gpe_event_info, u8 action); |
| 98 | 98 | ||
| 99 | acpi_status | 99 | acpi_status |
| 100 | acpi_hw_write_gpe_enable_reg(struct acpi_gpe_event_info *gpe_event_info); | ||
| 101 | |||
| 102 | acpi_status | ||
| 103 | acpi_hw_disable_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info, | 100 | acpi_hw_disable_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info, |
| 104 | struct acpi_gpe_block_info *gpe_block, void *context); | 101 | struct acpi_gpe_block_info *gpe_block, void *context); |
| 105 | 102 | ||
diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c index 56de460570d6..7a6a3e6f4be0 100644 --- a/drivers/acpi/acpica/evgpe.c +++ b/drivers/acpi/acpica/evgpe.c | |||
| @@ -452,8 +452,12 @@ static void acpi_ev_asynch_enable_gpe(void *context) | |||
| 452 | } | 452 | } |
| 453 | } | 453 | } |
| 454 | 454 | ||
| 455 | /* Enable this GPE */ | 455 | /* |
| 456 | (void)acpi_hw_write_gpe_enable_reg(gpe_event_info); | 456 | * Enable this GPE, conditionally. This means that the GPE will only be |
| 457 | * physically enabled if the enable_for_run bit is set in the event_info | ||
| 458 | */ | ||
| 459 | (void)acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_COND_ENABLE); | ||
| 460 | |||
| 457 | return_VOID; | 461 | return_VOID; |
| 458 | } | 462 | } |
| 459 | 463 | ||
diff --git a/drivers/acpi/acpica/hwgpe.c b/drivers/acpi/acpica/hwgpe.c index 12d70fdadc2b..14750db2a1b8 100644 --- a/drivers/acpi/acpica/hwgpe.c +++ b/drivers/acpi/acpica/hwgpe.c | |||
| @@ -143,31 +143,6 @@ acpi_hw_low_set_gpe(struct acpi_gpe_event_info *gpe_event_info, u8 action) | |||
| 143 | 143 | ||
| 144 | /****************************************************************************** | 144 | /****************************************************************************** |
| 145 | * | 145 | * |
| 146 | * FUNCTION: acpi_hw_write_gpe_enable_reg | ||
| 147 | * | ||
| 148 | * PARAMETERS: gpe_event_info - Info block for the GPE to be enabled | ||
| 149 | * | ||
| 150 | * RETURN: Status | ||
| 151 | * | ||
| 152 | * DESCRIPTION: Write a GPE enable register. Note: The bit for this GPE must | ||
| 153 | * already be cleared or set in the parent register | ||
| 154 | * enable_for_run mask. | ||
| 155 | * | ||
| 156 | ******************************************************************************/ | ||
| 157 | |||
| 158 | acpi_status | ||
| 159 | acpi_hw_write_gpe_enable_reg(struct acpi_gpe_event_info * gpe_event_info) | ||
| 160 | { | ||
| 161 | acpi_status status; | ||
| 162 | |||
| 163 | ACPI_FUNCTION_ENTRY(); | ||
| 164 | |||
| 165 | status = acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_COND_ENABLE); | ||
| 166 | return (status); | ||
| 167 | } | ||
| 168 | |||
| 169 | /****************************************************************************** | ||
| 170 | * | ||
| 171 | * FUNCTION: acpi_hw_clear_gpe | 146 | * FUNCTION: acpi_hw_clear_gpe |
| 172 | * | 147 | * |
| 173 | * PARAMETERS: gpe_event_info - Info block for the GPE to be cleared | 148 | * PARAMETERS: gpe_event_info - Info block for the GPE to be cleared |
