ACPI: Use GPE reference counting to support shared GPEs
To fix a bug and address the reviewers' comments regarding the ACPI GPE refcounting patch, do the following additional changes: o Remove the second argument of acpi_ev_enable_gpe(), 'write_to_hardware', because it is not necessary any more. o Add the "bad parameter" test against 'type' in acpi_enable_gpe() and acpi_disable_gpe(). o Make acpi_enable_gpe() only check 'status' for runtime GPEs if acpi_ev_enable_gpe() was actually called. o Make acpi_disable_gpe() return 'status' returned by acpi_ev_disable_gpe() and fix a bug where ACPI_GPE_TYPE_WAKE and ACPI_GPE_TYPE_RUNTIME were exchanged by mistake. o Add comments explaining why acpi_set_gpe() is used by the ACPI EC driver. Signed-off-by:Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by:
Jesse Barnes <jbarnes@virtuousgeek.org>
Showing
- drivers/acpi/acpica/acevents.h 1 addition, 3 deletionsdrivers/acpi/acpica/acevents.h
- drivers/acpi/acpica/evgpe.c 3 additions, 7 deletionsdrivers/acpi/acpica/evgpe.c
- drivers/acpi/acpica/evxfevnt.c 15 additions, 9 deletionsdrivers/acpi/acpica/evxfevnt.c
- drivers/acpi/ec.c 11 additions, 3 deletionsdrivers/acpi/ec.c
Loading
Please register or sign in to comment