aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingcong Bai <[email protected]>2025-02-21 16:48:24 +0000
committerIlpo Järvinen <[email protected]>2025-03-03 12:33:30 +0000
commitd0d10eaedcb53740883d7e5d53c5e15c879b48fb (patch)
treea4777f48e9aef3ae2da1fcd23143dccfed6e42ec
parentplatform/x86: intel-hid: fix volume buttons on Microsoft Surface Go 4 tablet (diff)
downloadkernel-d0d10eaedcb53740883d7e5d53c5e15c879b48fb.tar.gz
kernel-d0d10eaedcb53740883d7e5d53c5e15c879b48fb.zip
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 <[email protected]> Tested-by: Fan Yang <[email protected]> Co-developed-by: Xi Ruoyao <[email protected]> Signed-off-by: Xi Ruoyao <[email protected]> Signed-off-by: Mingcong Bai <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 72a10ed2017c..1cc91173e012 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -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 */