]> 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)
commit6de0c4ca046399b9b37b7e8f09492fe3f14e4b32
tree017aa68d2031d2279e8e2844e1c64e7abe954e2f
parent314acc194d73ceeccdb59dcc9e2267b4aef203b9
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