From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Caione Subject: [PATCH v2 2/3] ACPI: AC/battery: Add quirks for ECS EF20EA Date: Fri, 16 Feb 2018 08:26:15 +0000 Message-ID: <20180216082616.25084-3-carlo@caione.org> References: <20180216082616.25084-1-carlo@caione.org> Return-path: Received: from mail-wr0-f196.google.com ([209.85.128.196]:37199 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754230AbeBPI07 (ORCPT ); Fri, 16 Feb 2018 03:26:59 -0500 In-Reply-To: <20180216082616.25084-1-carlo@caione.org> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: linux@endlessm.com, hdegoede@redhat.com, rjw@rjwysocki.net, lenb@kernel.org, sre@kernel.org, wens@csie.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: Carlo Caione From: Carlo Caione On the ECS EF20EA laptop we need to move away from the AXP288 FG driver and enable again the ACPI AC/battery drivers. Add the required quirks to do that. We rely only on the product name because all the other DMI entries are dummy or not filled in on this platform. Signed-off-by: Carlo Caione --- drivers/acpi/ac.c | 7 +++++++ drivers/acpi/battery.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index b9a4ca720309..39f778f954f5 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c @@ -332,6 +332,13 @@ static const struct dmi_system_id ac_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "32597CG"), }, }, + { + .callback = ac_not_use_pmic_quirk, + .ident = "ECS EF20EA", + .matches = { + DMI_MATCH(DMI_PRODUCT_NAME, "EF20EA"), + }, + }, {}, }; diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 258d2e66f230..fe024f1a8ad5 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -1233,6 +1233,13 @@ static const struct dmi_system_id bat_dmi_table[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "UX410UAK"), }, }, + { + .callback = battery_not_use_pmic_quirk, + .ident = "ECS EF20EA", + .matches = { + DMI_MATCH(DMI_PRODUCT_NAME, "EF20EA"), + }, + }, {}, }; -- 2.14.1