Skip to content

platform/x86: dell-laptop: Battery hook fixes

Armin Wolf linux-acpi lkml platform-driver-x86 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/23 patches 7 repliesIn review
  2. v3 posting 1/20 of 3 patches 0 repliesSuperseded
  3. v23 patches 7 repliesSuperseded

Changes since v1 from the cover letter

- fix the underlying issue inside the ACPI battery driver
- reword patch for dell-laptop

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPI: battery: Simplify battery hook lockingdrivers/acpi/battery.c+9 -92 replies
2/3ACPI: battery: Fix possible crash when unregistering a battery hookdrivers/acpi/battery.c+9 -34 replies
3/3platform/x86: dell-laptop: Do not fail when encountering unsupported batteriesdrivers/platform/x86/dell/dell-laptop.c+12 -31 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchIlpo JärvinenRafael J. WysockiPali Rohár
1/3R-b R-b R-b
2/3A-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH RESEND v3 0/3] platform/x86: dell-laptop: Battery hook fixes

This patch series fixes some issues around the battery hook handling inside the ACPI battery driver and the dell-laptop driver.

The first patch simplifies the locking during battery hook removal as a preparation for the second patch which fixes a possible crash when unregistering a battery hook.

The third patch allows the dell-laptop driver to handle systems with multiple batteries.

All patches where tested on a Dell Inspiron 3505 and appear to work.

Chnages since v2:
- drop boolean flag and use list head instead in patch 2
- drop [email protected] from the CC list since the underlying adress seems to trigger random errors in proccessing (help?)

Changes since v1:
- fix the underlying issue inside the ACPI battery driver
- reword patch for dell-laptop

Armin Wolf (3):
ACPI: battery: Simplify battery hook locking
ACPI: battery: Fix possible crash when unregistering a battery hook platform/x86: dell-laptop: Do not fail when encountering unsupported
batteries

 drivers/acpi/battery.c                  | 28 +++++++++++++++----------
 drivers/platform/x86/dell/dell-laptop.c | 15 ++++++++++---
 2 files changed, 29 insertions(+), 14 deletions(-)

--
2.39.5