* [PATCH] power: supply: axp288_fuel_gauge: Add Mele PCG03 to the deny-list
@ 2021-01-12 10:36 Hans de Goede
2021-01-12 22:08 ` Sebastian Reichel
0 siblings, 1 reply; 2+ messages in thread
From: Hans de Goede @ 2021-01-12 10:36 UTC (permalink / raw)
To: Sebastian Reichel; +Cc: Hans de Goede, linux-pm, Rasmus Porsager
The Mele PCG03 is another mini PC using the AXP288 PMIC where the EFI
code does not disable the charger part of the PMIC causing us to report
a discharging battery with a random battery charge to userspace.
Add it to the deny-list to avoid the bogus battery status reporting.
Cc: Rasmus Porsager <rasmus@beat.dk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/power/supply/axp288_fuel_gauge.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c
index 148eb8105803..39e16ecb7638 100644
--- a/drivers/power/supply/axp288_fuel_gauge.c
+++ b/drivers/power/supply/axp288_fuel_gauge.c
@@ -732,6 +732,12 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
DMI_MATCH(DMI_BOARD_VERSION, "V1.1"),
},
},
+ { /* Mele PCG03 Mini PC */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Mini PC"),
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "Mini PC"),
+ },
+ },
{
/* Minix Neo Z83-4 mini PC */
.matches = {
--
2.28.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] power: supply: axp288_fuel_gauge: Add Mele PCG03 to the deny-list
2021-01-12 10:36 [PATCH] power: supply: axp288_fuel_gauge: Add Mele PCG03 to the deny-list Hans de Goede
@ 2021-01-12 22:08 ` Sebastian Reichel
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2021-01-12 22:08 UTC (permalink / raw)
To: Hans de Goede; +Cc: linux-pm, Rasmus Porsager
[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]
Hi,
On Tue, Jan 12, 2021 at 11:36:05AM +0100, Hans de Goede wrote:
> The Mele PCG03 is another mini PC using the AXP288 PMIC where the EFI
> code does not disable the charger part of the PMIC causing us to report
> a discharging battery with a random battery charge to userspace.
>
> Add it to the deny-list to avoid the bogus battery status reporting.
>
> Cc: Rasmus Porsager <rasmus@beat.dk>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
Thanks, queued.
-- Sebastian
> drivers/power/supply/axp288_fuel_gauge.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c
> index 148eb8105803..39e16ecb7638 100644
> --- a/drivers/power/supply/axp288_fuel_gauge.c
> +++ b/drivers/power/supply/axp288_fuel_gauge.c
> @@ -732,6 +732,12 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
> DMI_MATCH(DMI_BOARD_VERSION, "V1.1"),
> },
> },
> + { /* Mele PCG03 Mini PC */
> + .matches = {
> + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Mini PC"),
> + DMI_EXACT_MATCH(DMI_BOARD_NAME, "Mini PC"),
> + },
> + },
> {
> /* Minix Neo Z83-4 mini PC */
> .matches = {
> --
> 2.28.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-12 22:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 10:36 [PATCH] power: supply: axp288_fuel_gauge: Add Mele PCG03 to the deny-list Hans de Goede
2021-01-12 22:08 ` Sebastian Reichel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.