[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250221164825.77315-1-jeffbai@aosc.io>
Date: Sat, 22 Feb 2025 00:48:24 +0800
From: Mingcong Bai <jeffbai@...c.io>
To: linux-kernel@...r.kernel.org,
platform-driver-x86@...r.kernel.org,
ibm-acpi-devel@...ts.sourceforge.net
Cc: Kexy Biscuit <kexybiscuit@...c.io>,
Mingcong Bai <jeffbai@...c.io>,
Fan Yang <804284660@...com>,
Xi Ruoyao <xry111@...111.site>,
Henrique de Moraes Holschuh <hmh@....eng.br>,
Hans de Goede <hdegoede@...hat.com>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Subject: [PATCH] platform/x86: thinkpad_acpi: Add battery quirk for ThinkPad X131e
Based on the dmesg messages from the original reporter:
[ 4.964073] ACPI: \_SB_.PCI0.LPCB.EC__.HKEY: BCTG evaluated but flagged as error
[ 4.964083] thinkpad_acpi: Error probing battery 2
Lenovo ThinkPad X131e also needs this battery quirk.
Reported-by: Fan Yang <804284660@...com>
Tested-by: Fan Yang <804284660@...com>
Co-developed-by: Xi Ruoyao <xry111@...111.site>
Signed-off-by: Xi Ruoyao <xry111@...111.site>
Signed-off-by: Mingcong Bai <jeffbai@...c.io>
---
drivers/platform/x86/thinkpad_acpi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 1fcb0f99695a7..64765c6939a50 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -9960,6 +9960,7 @@ static const struct tpacpi_quirk battery_quirk_table[] __initconst = {
* Individual addressing is broken on models that expose the
* primary battery as BAT1.
*/
+ TPACPI_Q_LNV('G', '8', true), /* ThinkPad X131e */
TPACPI_Q_LNV('8', 'F', true), /* Thinkpad X120e */
TPACPI_Q_LNV('J', '7', true), /* B5400 */
TPACPI_Q_LNV('J', 'I', true), /* Thinkpad 11e */
--
2.48.1
Powered by blists - more mailing lists