Skip to content
  1. Apr 06, 2009
  2. Apr 05, 2009
    • Bjorn Helgaas's avatar
      ACPI: processor: use .notify method instead of installing handler directly · 7ec0a729
      Bjorn Helgaas authored
      
      
      This patch adds a .notify() method.  The presence of .notify() causes
      Linux/ACPI to manage event handlers and notify handlers on our behalf,
      so we don't have to install and remove them ourselves.
      
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      CC: Zhang Rui <rui.zhang@intel.com>
      CC: Zhao Yakui <yakui.zhao@intel.com>
      CC: Venki Pallipadi <venkatesh.pallipadi@intel.com>
      CC: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      7ec0a729
    • Bjorn Helgaas's avatar
      ACPI: button: use .notify method instead of installing handler directly · 373cfc36
      Bjorn Helgaas authored
      
      
      This patch adds a .notify() method.  The presence of .notify() causes
      Linux/ACPI to manage event handlers and notify handlers on our behalf,
      so we don't have to install and remove them ourselves.
      
      Note that events from fixed hardware buttons now show up as a special
      notify event, so to preserve user-space backward compatibility, we
      convert that back to ACPI_BUTTON_NOTIFY_STATUS.
      
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Reviewed-by: default avatarAlex Chiang <achiang@hp.com>
      CC: Alexey Starikovskiy <alexey.y.starikovskiy@linux.intel.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      373cfc36
    • Bjorn Helgaas's avatar
      ACPI: support acpi_device_ops .notify methods · 46ec8598
      Bjorn Helgaas authored
      
      
      This patch adds support for ACPI device driver .notify() methods.  If
      such a method is present, Linux/ACPI installs a handler for device
      notifications (but not for system notifications such as Bus Check,
      Device Check, etc).  When a device notification occurs, Linux/ACPI
      passes it on to the driver's .notify() method.
      
      In most cases, this removes the need for drivers to install their own
      handlers for device-specific notifications.
      
      For fixed hardware devices like some power and sleep buttons, there's
      no notification value because there's no control method to execute a
      Notify opcode.  When a fixed hardware device generates an event, we
      handle it the same as a regular device notification, except we send
      a ACPI_FIXED_HARDWARE_EVENT value.  This is outside the normal 0x0-0xff
      range used by Notify opcodes.
      
      Several drivers install their own handlers for system Bus Check and
      Device Check notifications so they can support hot-plug.  This patch
      doesn't affect that usage.
      
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Reviewed-by: default avatarAlex Chiang <achiang@hp.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      46ec8598