From: Carlo Caione <carlo@caione.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 <carlo@endlessm.com>
Subject: [PATCH v2 2/3] ACPI: AC/battery: Add quirks for ECS EF20EA
Date: Fri, 16 Feb 2018 08:26:15 +0000 [thread overview]
Message-ID: <20180216082616.25084-3-carlo@caione.org> (raw)
In-Reply-To: <20180216082616.25084-1-carlo@caione.org>
From: Carlo Caione <carlo@endlessm.com>
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 <carlo@endlessm.com>
---
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
next prev parent reply other threads:[~2018-02-16 8:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-16 8:26 [PATCH v2 0/3] power: supply: Fix AXP288 fallback when not needed Carlo Caione
2018-02-16 8:26 ` [PATCH v2 1/3] ACPI: AC/battery: Add quirk to avoid using PMIC Carlo Caione
2018-02-16 8:40 ` Rafael J. Wysocki
2018-02-16 8:26 ` Carlo Caione [this message]
2018-02-16 8:26 ` [PATCH v2 3/3] power: supply: axp288_fuel_gauge: Do not register FG on ECS EF20EA Carlo Caione
2018-02-16 14:26 ` Sebastian Reichel
2018-02-16 8:41 ` [PATCH v2 0/3] power: supply: Fix AXP288 fallback when not needed Hans de Goede
2018-02-16 8:51 ` Rafael J. Wysocki
2018-02-16 8:52 ` Hans de Goede
2018-02-16 8:58 ` Carlo Caione
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180216082616.25084-3-carlo@caione.org \
--to=carlo@caione.org \
--cc=carlo@endlessm.com \
--cc=hdegoede@redhat.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux@endlessm.com \
--cc=rjw@rjwysocki.net \
--cc=sre@kernel.org \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox