platform/x86: thinkpad_acpi: extend battery quirk coverage
PATCH v2 1/1 platform/x86: thinkpad_acpi: extend battery quirk coverage
Based on bug reports and a web search for
"Thinkpad_acpi: Error probing battery 2"
four more models were found that require the battery quirk:
Lenovo B5400, Thinkpad 11e, Thinkpad 11e gen 3, Thinkpad 13 gen 3.
---
I avoided the ping-pong style and added James Cheshire as a tester. Andy suggested to Cc: him, but if I understand the kernel documentation on submitting patches correctly, a Tested-by: is in order. James tested on a Thinkpad 11e and agreed to be included in the commit message.
drivers/platform/x86/thinkpad_acpi.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/platform/x86/thinkpad_acpi.c +4 -0
@@ -9611,7 +9611,11 @@ 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 ('J' ,'7' , true),/* B5400 */ +TPACPI_Q_LNV ('J' ,'I' , true),/* Thinkpad 11e */ +TPACPI_Q_LNV3 ('R' ,'0' ,'B' , true),/* Thinkpad 11e gen 3 */ TPACPI_Q_LNV3 ('R' ,'0' ,'C' , true),/* Thinkpad 13 */ + TPACPI_Q_LNV3('R', '0', 'J', true), /* Thinkpad 13 gen 2 */ };static int __init tpacpi_battery_init (struct ibm_init_struct *ibm)
Signature · 6 lines
2.18.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
A message that is not in the archive (sent off-list or not yet received): 20180802202849.GA2580-7Pk1HLXsvWqf6HGZUO+WniZi+YwRKgec@public.gmane.org
Quoted 5 lines · Jouke Witteveen
Based on bug reports and a web search for
"Thinkpad_acpi: Error probing battery 2"
four more models were found that require the battery quirk:
Lenovo B5400, Thinkpad 11e, Thinkpad 11e gen 3, Thinkpad 13 gen 3.
Pushed to my review and testing queue, thanks!
Quoted 32 lines
Signed-off-by Jouke Witteveen <[email protected]>Tested-by James Cheshire <[email protected]>---
I avoided the ping-pong style and added James Cheshire as a tester. Andy suggested to Cc: him, but if I understand the kernel documentation on submitting patches correctly, a Tested-by: is in order. James tested on a Thinkpad 11e and agreed to be included in the commit message.
drivers/platform/x86/thinkpad_acpi.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/platform/x86/thinkpad_acpi.c +4
-1@@ -9611,7 +9611,11 @@ 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 ('J' ,'7' , true),/* B5400 */ +TPACPI_Q_LNV ('J' ,'I' , true),/* Thinkpad 11e */ +TPACPI_Q_LNV3 ('R' ,'0' ,'B' , true),/* Thinkpad 11e gen 3 */ TPACPI_Q_LNV3 ('R' ,'0' ,'C' , true),/* Thinkpad 13 */ + TPACPI_Q_LNV3('R', '0', 'J', true), /* Thinkpad 13 gen 2 */ };static int __init tpacpi_battery_init (struct ibm_init_struct *ibm) --2.18.0
Signature · 6 lines
With Best Regards, Andy Shevchenko ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot