ACPI: EC: add support for hardware-reduced systems
authorDaniel Drake <drake@endlessm.com>
Mon, 14 Oct 2019 08:56:02 +0000 (16:56 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Oct 2019 15:00:09 +0000 (16:00 +0100)
commit406857f773b082bc88edfd24967facf4ed07ac85
treecf0ab4483ba63c0ea5a79138c79114437846bd5f
parent4446abc9a10954e5d09dd2b894912348a22e7009
ACPI: EC: add support for hardware-reduced systems

As defined in the ACPI spec section 12.11, ACPI hardware-reduced
platforms define the EC SCI interrupt as a GpioInt in the _CRS object.

This replaces the previous way of using a GPE for this interrupt;
GPE blocks are not available on reduced hardware platforms.

Add support for handling this interrupt as an EC event source, and
avoid GPE usage on reduced hardware platforms.

This enables the use of several media keys (e.g. screen brightness
up/down) on Asus UX434DA.

Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c
drivers/acpi/internal.h