]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac90ac10b9e8e270ccdab433ebf78ba600aae2b4
tree017aa68d2031d2279e8e2844e1c64e7abe954e2f
parent43f6f127e1db245a16b01624522d93348ca67a66
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