]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "ACPI: EC: Do not clear boot_ec_is_ecdt in acpi_ec_add()"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Apr 2020 09:29:04 +0000 (11:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Apr 2020 07:04:50 +0000 (09:04 +0200)
This reverts commit ca2cc393de3a20149609fab1f7412f6d1759ce1a which is
commit 0a627b28955c93bf437a130796fb07077c3cd843 upstream.

Rafael writes:
It has not been marked for -stable or otherwise requested to be
included AFAICS.  Also it depends on other mainline commits that
have not been included into 5.6.5.

Reported-by: Toralf Förster <toralf.foerster@gmx.de>
Reported-by: Rafael J. Wysocki <rafael@kernel.org>
Cc: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/ec.c

index ed2ecb00004f270631c9ab1d1e599ba43f0ad13d..5e6c8bfc661255d73cb724a8460c26a764ee0a71 100644 (file)
@@ -1573,6 +1573,7 @@ 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) {
+                       boot_ec_is_ecdt = false;
                        /*
                         * Trust PNP0C09 namespace location rather than
                         * ECDT ID. But trust ECDT GPE rather than _GPE
@@ -1592,12 +1593,9 @@ static int acpi_ec_add(struct acpi_device *device)
 
        if (ec == boot_ec)
                acpi_handle_info(boot_ec->handle,
-                                "Boot %s EC initialization complete\n",
+                                "Boot %s EC used to handle transactions and events\n",
                                 boot_ec_is_ecdt ? "ECDT" : "DSDT");
 
-       acpi_handle_info(ec->handle,
-                        "EC: Used to handle transactions and events\n");
-
        device->driver_data = ec;
 
        ret = !!request_region(ec->data_addr, 1, "EC data");