ACPI: EC: trust DSDT GPE for certain HP laptop
authorZhang Rui <rui.zhang@intel.com>
Mon, 21 Jun 2021 01:37:27 +0000 (09:37 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 21 Jun 2021 16:48:22 +0000 (18:48 +0200)
commit4370cbf350dbaca984dbda9f9ce3fac45d6949d5
tree017aa68d2031d2279e8e2844e1c64e7abe954e2f
parent6306f0431914beaf220634ad36c08234006571d5
ACPI: EC: trust DSDT GPE for certain HP laptop

On HP Pavilion Gaming Laptop 15-cx0xxx, the ECDT EC and DSDT EC share
the same port addresses but different GPEs. And the DSDT GPE is the
right one to use.

The current code duplicates DSDT EC with ECDT EC if the port addresses
are the same, and uses ECDT GPE as a result, which breaks this machine.

Introduce a new quirk for the HP laptop to trust the DSDT GPE,
and avoid duplicating even if the port addresses are the same.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=209989
Reported-and-tested-by: Shao Fu, Chen <leo881003@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c