All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/10] ACPI: add device .notify methods
@ 2009-03-30 17:48 Bjorn Helgaas
  2009-03-30 17:48 ` [PATCH 01/10] ACPI: support acpi_device_ops " Bjorn Helgaas
                   ` (9 more replies)
  0 siblings, 10 replies; 27+ messages in thread
From: Bjorn Helgaas @ 2009-03-30 17:48 UTC (permalink / raw)
  To: Len Brown
  Cc: Tony Vroon, Alex Chiang, linux-acpi, Carlos Corbacho,
	Anil S Keshavamurthy, Jonathan Woithe, Zhao Yakui,
	Mattia Dongili, Harald Welte, Venki Pallipadi,
	Alexey Starikovskiy, Zhang Rui, Matthew Garrett

I'm trying to simplify ACPI drivers by reducing their dependence
on internal ACPI CA details.  One possibility seems to be moving
notify handler management from individual drivers into the
Linux/ACPI driver registration code.

These patches add support for an ACPI driver .notify() method.
If one is present, the Linux/ACPI code installs a generic notify
handler when the driver binds to a device.  The generic handler
passes the event on to the driver's .notify() method.  The
advantage is that the driver need not install or remove the
notify handler, and the .notify() method works in terms of a
struct acpi_device rather than an acpi_handle.

Note that these patches only affect device notifications, not
system notifications.  System notifications are primarily
bus-related events for things like hot-plug and wakeup.  The
device notifications are generally driver-specific things like
"device status changed," "button pressed," or "some method
needs to be re-evaluated."

Comments welcome.

Bjorn

---

Bjorn Helgaas (10):
      ACPI: WMI: use .notify method instead of installing handler directly
      sony-laptop: use .notify method instead of installing handler directly
      panasonic-laptop: use .notify method instead of installing handler directly
      fujitsu-laptop: use .notify method instead of installing hotkey handler directly
      fujitsu-laptop: use .notify method instead of installing handler directly
      ACPI: video: use .notify method instead of installing handler directly
      ACPI: thermal: use .notify method instead of installing handler directly
      ACPI: processor: use .notify method instead of installing handler directly
      ACPI: button: use .notify method instead of installing handler directly
      ACPI: support acpi_device_ops .notify methods


 drivers/acpi/button.c                   |   77 +++----------------------------
 drivers/acpi/processor_core.c           |   19 ++------
 drivers/acpi/scan.c                     |   71 +++++++++++++++++++++++++++++
 drivers/acpi/thermal.c                  |   27 ++---------
 drivers/acpi/video.c                    |   30 ++----------
 drivers/platform/x86/fujitsu-laptop.c   |   60 ++++--------------------
 drivers/platform/x86/panasonic-laptop.c |   26 ++--------
 drivers/platform/x86/sony-laptop.c      |   32 ++-----------
 drivers/platform/x86/wmi.c              |   15 +-----
 include/acpi/acpi_bus.h                 |    2 +
 include/acpi/acpi_drivers.h             |   10 ++++
 11 files changed, 126 insertions(+), 243 deletions(-)

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

end of thread, other threads:[~2009-04-03 22:47 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-30 17:48 [PATCH 00/10] ACPI: add device .notify methods Bjorn Helgaas
2009-03-30 17:48 ` [PATCH 01/10] ACPI: support acpi_device_ops " Bjorn Helgaas
2009-04-02 13:56   ` Thomas Renninger
2009-04-02 15:03     ` Bjorn Helgaas
2009-04-03  0:23       ` Yasunori Goto
2009-04-03  9:08         ` Thomas Renninger
2009-04-03 15:09         ` Bjorn Helgaas
2009-04-03 22:43           ` Yasunori Goto
2009-04-03 13:14       ` Thomas Renninger
2009-03-30 17:48 ` [PATCH 02/10] ACPI: button: use .notify method instead of installing handler directly Bjorn Helgaas
2009-03-30 17:48 ` [PATCH 03/10] ACPI: processor: " Bjorn Helgaas
2009-03-30 17:48 ` [PATCH 04/10] ACPI: thermal: " Bjorn Helgaas
2009-03-30 17:48 ` [PATCH 05/10] ACPI: video: " Bjorn Helgaas
2009-03-30 17:48 ` [PATCH 06/10] fujitsu-laptop: " Bjorn Helgaas
2009-03-31  6:45   ` [PATCH 06/10] fujitsu-laptop: use .notify method instead of Jonathan Woithe
2009-03-31 21:38   ` [PATCH 06/10] fujitsu-laptop: use .notify method instead of installing handler directly Tony Vroon
2009-03-31 22:09     ` Bjorn Helgaas
2009-03-31 22:09       ` Tony Vroon
2009-03-31 22:29   ` Jonathan Woithe
2009-03-30 17:48 ` [PATCH 07/10] fujitsu-laptop: use .notify method instead of installing hotkey " Bjorn Helgaas
2009-03-31 21:39   ` Tony Vroon
2009-03-31 22:30   ` [PATCH 07/10] fujitsu-laptop: use .notify method instead of installing " Jonathan Woithe
2009-03-30 17:48 ` [PATCH 08/10] panasonic-laptop: " Bjorn Helgaas
2009-03-30 17:48 ` [PATCH 09/10] sony-laptop: " Bjorn Helgaas
2009-03-31 13:46   ` Mattia Dongili
2009-03-31 22:58     ` Mattia Dongili
2009-03-30 17:48 ` [PATCH 10/10] ACPI: WMI: " Bjorn Helgaas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.