public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] platform/x86: dell-laptop: Battery hook fixes
@ 2024-09-22  6:40 Armin Wolf
  2024-09-22  6:40 ` [PATCH v2 1/3] ACPI: battery: Simplify battery hook locking Armin Wolf
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Armin Wolf @ 2024-09-22  6:40 UTC (permalink / raw)
  To: mjg59, pali, dilinger
  Cc: rafael, lenb, hdegoede, ilpo.jarvinen, platform-driver-x86,
	linux-acpi, linux-kernel

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.

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                  | 27 ++++++++++++++++---------
 drivers/platform/x86/dell/dell-laptop.c | 15 +++++++++++---
 include/acpi/battery.h                  |  1 +
 3 files changed, 31 insertions(+), 12 deletions(-)

--
2.39.5


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-10-01 18:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-22  6:40 [PATCH v2 0/3] platform/x86: dell-laptop: Battery hook fixes Armin Wolf
2024-09-22  6:40 ` [PATCH v2 1/3] ACPI: battery: Simplify battery hook locking Armin Wolf
2024-09-23 13:35   ` Ilpo Järvinen
2024-09-22  6:40 ` [PATCH v2 2/3] ACPI: battery: Fix possible crash when unregistering a battery hook Armin Wolf
2024-10-01 18:57   ` Rafael J. Wysocki
2024-09-22  6:40 ` [PATCH v2 3/3] platform/x86: dell-laptop: Do not fail when encountering unsupported batteries Armin Wolf
2024-09-22  7:45 ` [PATCH v2 0/3] platform/x86: dell-laptop: Battery hook fixes Andres Salomon
2024-09-22  8:53   ` Pali Rohár
2024-09-23 20:14   ` Armin Wolf
2024-09-30 18:53 ` Armin Wolf
2024-09-30 19:03   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox