aboutsummaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2020-03-03 20:15:04 +0100
committerGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2020-03-14 10:59:44 +0100
commit03e9a0e05739cf872fee494b06c75c0469704a21 (patch)
treea80c6a2284881a982548d7358d6a4ae4f0ecc6a2 /certs
parentACPI: EC: Use fast path in acpi_ec_add() for DSDT boot EC (diff)
downloadlinux-03e9a0e05739cf872fee494b06c75c0469704a21.tar.gz
linux-03e9a0e05739cf872fee494b06c75c0469704a21.tar.bz2
linux-03e9a0e05739cf872fee494b06c75c0469704a21.zip
ACPI: EC: Consolidate event handler installation code
Commit 406857f773b0 ("ACPI: EC: add support for hardware-reduced systems") made ec_install_handlers() return an error on failures to configure a GPIO IRQ for the EC, but that is inconsistent with the handling of the GPE event handler installation failures even though it is exactly the same issue and the driver can respond to it in the same way in both cases (the EC can be actively polled for events through its registers if the event handler installation fails). Moreover, it requires acpi_ec_add() to take that special case into account and disagrees with the ec_install_handlers() header comment. For this reason, rework the event handler installation code in ec_install_handlers() to explicitly take deferred probing (that may be needed in the GPIO IRQ case) into account and to avoid failing the EC initialization in any other case. Among other things, reduce code duplication between install_gpe_event_handler() and install_gpio_irq_event_handler() by moving some code from there into ec_install_handlers() itself and simplify the error code path in acpi_ec_add(). While at it, turn the ec_install_handlers() header comment into a proper kerneldoc one and add some general control flow information to it. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Jian-Hong Pan <jian-hong@endlessm.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions