From e5b04d7d5dcd6220bfbcb921260c72a7df6c90b1 Mon Sep 17 00:00:00 2001 From: Zhang Rui Date: Thu, 10 Jun 2021 16:07:22 +0800 Subject: [PATCH] ACPI: EC: do not duplicate ECDT EC and DSDT EC if GPEs are different Signed-off-by: Zhang Rui --- drivers/acpi/ec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 62a9d9ad7ab4..3e61b346e3fd 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -1601,7 +1601,8 @@ static int acpi_ec_add(struct acpi_device *device) } if (boot_ec && ec->command_addr == boot_ec->command_addr && - ec->data_addr == boot_ec->data_addr) { + ec->data_addr == boot_ec->data_addr && + ec->gpe == boot_ec->gpe) { /* * Trust PNP0C09 namespace location rather than * ECDT ID. But trust ECDT GPE rather than _GPE -- 2.17.1