platform/x86: thinkpad_acpi: Extend battery quirk coverage
PATCH 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 (original and gen 3), Thinkpad 13 gen 3.
---
I could only get someone to verify this on the 11e. Other requests have gone unanswered. The error message (Error probing battery 2) is a pretty clear indication that the quirk is needed, however.
@Andy Shevchenko: Thanks for applying my previous patches! Sorry for not noticing this.
drivers/platform/x86/thinkpad_acpi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/thinkpad_acpi.c +5 -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_LNV3('R', '0', 'C', true), /* Thinkpad 13 */ +TPACPI_Q_LNV ('J' ,'7' , true),/* B5400 */ +TPACPI_Q_LNV ('J' ,'I' , true),/* 11e */ +TPACPI_Q_LNV3 ('R' ,'0' ,'B' , true),/* 11e gen 3 */ +TPACPI_Q_LNV3 ('R' ,'0' ,'C' , true),/* 13 */ + TPACPI_Q_LNV3('R', '0', 'J', true), /* 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): 20180801143220.GA11703-7Pk1HLXsvWqf6HGZUO+WniZi+YwRKgec@public.gmane.org
Quoted 4 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 (original and gen 3), Thinkpad 13 gen 3.
I think you may add Henrique's ACK here since he did for previous "v2". But I let him speak for himself.
Quoted 3 lines
I could only get someone to verify this on the 11e. Other requests have gone unanswered. The error message (Error probing battery 2) is a pretty clear indication that the quirk is needed, however.
I see. Care to Cc that guy (if they wish, of course, to be Cc:ed)?
drivers/platform/x86/thinkpad_acpi.c static const struct tpacpi_quirk battery_quirk_table[] __initconst = {
Quoted 3 lines
drivers/platform/x86/thinkpad_acpi.c +1
-1- TPACPI_Q_LNV3('R', '0', 'C', true), /* Thinkpad 13 */ + TPACPI_Q_LNV3('R', '0', 'C', true), /* 13 */
Please, avoid ping-pong style of fixes. Here just leave an original line.
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
A message that is not in the archive (sent off-list or not yet received): CAHp75VfS92M8xwRh4+tR9Ojp50FWawJj7wu=6VnVshwmWbVEzw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 8 lines · Andy Shevchenko
Quoted 4 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 (original and gen 3), Thinkpad 13 gen 3.I think you may add Henrique's ACK here since he did for previous "v2". But I let him speak for himself.
Yeah, the ack is still valid.
Signature · 5 lines
Henrique Holschuh ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot