]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86: thinkpad_acpi: Add battery quirk for ThinkPad X131e
authorMingcong Bai <jeffbai@aosc.io>
Fri, 21 Feb 2025 16:48:24 +0000 (00:48 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 3 Mar 2025 12:33:30 +0000 (14:33 +0200)
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@qq.com>
Tested-by: Fan Yang <804284660@qq.com>
Co-developed-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Mingcong Bai <jeffbai@aosc.io>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250221164825.77315-1-jeffbai@aosc.io
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c

index 72a10ed2017ce4ba84c64973e092700eaa7d3fae..1cc91173e01277f8661fced11d6ebdef3a6b2222 100644 (file)
@@ -9972,6 +9972,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 */