Message ID | 20240221083425.440108-1-kuoi@bioarchlinux.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-74326-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp911929dyc; Wed, 21 Feb 2024 00:50:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXHXzKVHYt2Eq6cEqj9WVMjHQ/3WbXLw5jGjXvH8/0ktAB4IrsCJRzWSd8UPnBqgbY5iwYIGw1XGP9HBEfCRr6MxgMWXw== X-Google-Smtp-Source: AGHT+IE+9LF+C+ABfyHk1k8NDfXCma4TKEH3f+I3tTSAMznk+W20Sy1A6JdRuF8zRGytCf/fycDM X-Received: by 2002:a05:622a:44c9:b0:42e:1b6a:2ecd with SMTP id kc9-20020a05622a44c900b0042e1b6a2ecdmr5137045qtb.34.1708505424365; Wed, 21 Feb 2024 00:50:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708505424; cv=pass; d=google.com; s=arc-20160816; b=tNEi9OmoqjzJOo8zrYBYdoxtzR1381v7nbUm8L8Dhtr2+dKcQhk2GgeNJ7xBQk04F9 YBYjR8Qs2+oACWWZhW6kja6VsfjIY0Eb8jNQW0kPhfXZ3CtKpPvHQ9u8n4Fu3rHzTJzn yV0ud9ExY9gPttI88uDV9dtNLo6KDsSN8Ogrx8k91qc/DpfoHj1xKiGAP+Zks9rB+PLb 9k+CV2Ln0P3jVegh/3BCd6whSCNK8JiC6p3A2LJ+/3or/un+eODx01fh/6+nPY0apZFj 3t441O1IScAg99vy2JYmDxLUyVD3erqqY4S12CwaRFxo5ZWDmh9wz+uQHg2uFdmGK03g Pfiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=d0060id0R0zVW8i2sFEopZ4wmRxTFwkqlvBcU/pCIlk=; fh=3rWiT3ovCd+Fago7K+rgbYMLK4p31c3RqyEABAGX3tc=; b=TAtYeMUeV/DWr/j9C+RhaJ3UgJcFyehoOqbIeHlZJGADD9bFz05Qm+Gn8S5E8/fn+5 fmJL0rKyHGF3ZMX6Sp0x/XqVIRS/zBHq+uvRcCUUwyC/SGeJco0tdCgKETC6MxPrcOFh YMZX4G4fiQUS7iNM0b0tnstmpByRb5cVh6ZK7t9Y9Rs9AnvVf7lL3k3Ykus2a9a0UIbp run4fnYjj5BS1wtS8ZkgB3FO/OnCKA0JmkaNQTIVB6Kutrv9S54NB49Mkr0FrNT9G38y 00S6ZWwjggM1dAH2m+x2oEGWb3Ca/aVGG1zooghGm7UqkXGm7SH0W9GPZ9PsV1FrkWjT qPxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bioarchlinux.org header.s=default header.b=sQR0zNoP; arc=pass (i=1 spf=pass spfdomain=bioarchlinux.org dkim=pass dkdomain=bioarchlinux.org dmarc=pass fromdomain=bioarchlinux.org); spf=pass (google.com: domain of linux-kernel+bounces-74326-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74326-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bioarchlinux.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o16-20020a05620a229000b007873786a028si10319754qkh.697.2024.02.21.00.50.24 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 00:50:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74326-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bioarchlinux.org header.s=default header.b=sQR0zNoP; arc=pass (i=1 spf=pass spfdomain=bioarchlinux.org dkim=pass dkdomain=bioarchlinux.org dmarc=pass fromdomain=bioarchlinux.org); spf=pass (google.com: domain of linux-kernel+bounces-74326-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74326-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bioarchlinux.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2B4D31C22851 for <ouuuleilei@gmail.com>; Wed, 21 Feb 2024 08:50:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA79E3CF69; Wed, 21 Feb 2024 08:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bioarchlinux.org header.i=@bioarchlinux.org header.b="sQR0zNoP" Received: from bioarchlinux.org (bioarchlinux.org [194.169.181.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDF773B793; Wed, 21 Feb 2024 08:50:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.169.181.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708505411; cv=none; b=kuJxJGqH0Nz3rVJU9kgtsCy2GnCSX+UvgtV0n2vBRsUcakQ2pilQN2IbJU24dFZRfVDUL5SfOCnji473A/d/T/pc0spPgBlzi23/NnjBwtNarXY9MMtAmA2LsQ7PuCVIlM0CABITk5E2il8cRLa1fDMswR/6w6+a2yuCSjaTrRo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708505411; c=relaxed/simple; bh=u9RZVNHmoguHW4+QAiRhir6A/moENxliS29YW2DJD5s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XljLXH5UqlOAS6400SV6xJtaOcU1UT7wgJTDIBpPAy2jAkqrt54VUlCC1xI4jAomvo5NTs+mpLOap9dqW+5Vds1eprY6KjbVPAJDCRwE5p6QFKV+t+d0SyNjfyYF3cp+kjhuCcRzjJ7lVJ620AtrBz30Z2lnrvzGqKtDMLgrgrc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bioarchlinux.org; spf=pass smtp.mailfrom=bioarchlinux.org; dkim=pass (2048-bit key) header.d=bioarchlinux.org header.i=@bioarchlinux.org header.b=sQR0zNoP; arc=none smtp.client-ip=194.169.181.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bioarchlinux.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bioarchlinux.org DKIM-Signature: a=rsa-sha256; bh=d0060id0R0zVW8i2sFEopZ4wmRxTFwkqlvBcU/pCIlk=; c=relaxed/relaxed; d=bioarchlinux.org; h=Subject:Subject:Sender:To:To:Cc:Cc:From:From:Date:Date:MIME-Version:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Reply-To:In-Reply-To:Message-Id:Message-Id:References:Autocrypt:Openpgp; i=@bioarchlinux.org; s=default; t=1708504470; v=1; x=1708936470; b=sQR0zNoPQAMEeU9zmwwgCCAfYshgfuHPqBos7n64iv4ib0aH9rQQLcJkDNNlereocX4kQo54 L6LnPS9zls7XefjIvL54cu4njwExbHrDc/EHY3jmck78t4coQnNMNor6aQyS+N4xCj3NyOUl5/E 6qf0k0d4dhwKU317wT99L2sjt8rNHwJavsFO4Qpetb0jm9AFe49z6mmt2ls7sM4uYPF0ViTu4JI SYIfmWzFIu99IGHphlm9QpPPaLy3c83MB/1Kxk01RosXkgTV3TCkvkN3RVR4yyjipEf0YxEAkxu zDc9Xy6PYQYZT3U8IiLFAa7sBCDFm3XYhqDDvEpAJNGnA== Received: by bioarchlinux.org (envelope-sender <kuoi@bioarchlinux.org>) with ESMTPS id 74a676f5; Wed, 21 Feb 2024 08:34:30 +0000 From: Guoyi Zhang <kuoi@bioarchlinux.org> To: sre@kernel.org, wens@csie.org, hdegoede@redhat.com Cc: Guoyi Zhang <kuoi@bioarchlinux.org>, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: supply: axp288_fuel_gauge: Deny ROCK Pi X Date: Wed, 21 Feb 2024 16:34:25 +0800 Message-ID: <20240221083425.440108-1-kuoi@bioarchlinux.org> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791497783653775096 X-GMAIL-MSGID: 1791497783653775096 |
Series |
power: supply: axp288_fuel_gauge: Deny ROCK Pi X
|
|
Commit Message
Guoyi Zhang
Feb. 21, 2024, 8:34 a.m. UTC
The ROCK Pi X is a single board computer without batteries 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 continuously
consumed battery charge to userspace.
Add it to the deny-list to avoid the bogus battery status reporting.
Signed-off-by: Guoyi Zhang <kuoi@bioarchlinux.org>
---
drivers/power/supply/axp288_fuel_gauge.c | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
Hi, On 2/21/24 09:34, Guoyi Zhang wrote: > The ROCK Pi X is a single board computer without batteries 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 continuously > consumed battery charge to userspace. > > Add it to the deny-list to avoid the bogus battery status reporting. > > Signed-off-by: Guoyi Zhang <kuoi@bioarchlinux.org> Thanks, patch looks good to me: Reviewed-by: Hans de Goede <hdegoede@redhat.com> Regards, Hans > --- > drivers/power/supply/axp288_fuel_gauge.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c > index 3be6f3b10..8f67f5d0d 100644 > --- a/drivers/power/supply/axp288_fuel_gauge.c > +++ b/drivers/power/supply/axp288_fuel_gauge.c > @@ -599,6 +599,14 @@ static const struct dmi_system_id axp288_quirks[] = { > }, > .driver_data = NULL, > }, > + { > + /* Radxa ROCK Pi X Single Board Computer */ > + .matches = { > + DMI_MATCH(DMI_BOARD_NAME, "ROCK Pi X"), > + DMI_MATCH(DMI_BOARD_VENDOR, "Radxa"), > + }, > + .driver_data = (void *)AXP288_QUIRK_NO_BATTERY, > + }, > { > /* > * Various Ace PC/Meegopad/MinisForum/Wintel Mini-PCs/HDMI-sticks
On Wed, 21 Feb 2024 16:34:25 +0800, Guoyi Zhang wrote: > The ROCK Pi X is a single board computer without batteries 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 continuously > consumed battery charge to userspace. > > Add it to the deny-list to avoid the bogus battery status reporting. > > [...] Applied, thanks! [1/1] power: supply: axp288_fuel_gauge: Deny ROCK Pi X commit: 9e6047c01159697cfd2f9b7788af9fe90fc7f544 Best regards,
diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c index 3be6f3b10..8f67f5d0d 100644 --- a/drivers/power/supply/axp288_fuel_gauge.c +++ b/drivers/power/supply/axp288_fuel_gauge.c @@ -599,6 +599,14 @@ static const struct dmi_system_id axp288_quirks[] = { }, .driver_data = NULL, }, + { + /* Radxa ROCK Pi X Single Board Computer */ + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "ROCK Pi X"), + DMI_MATCH(DMI_BOARD_VENDOR, "Radxa"), + }, + .driver_data = (void *)AXP288_QUIRK_NO_BATTERY, + }, { /* * Various Ace PC/Meegopad/MinisForum/Wintel Mini-PCs/HDMI-sticks