1. 17 2月, 2013 1 次提交
  2. 06 11月, 2012 1 次提交
  3. 07 11月, 2011 1 次提交
    • B
      ACPI: Fix CONFIG_ACPI_DOCK=n compiler warning · c1056b42
      Bart Van Assche 提交于
      Recently the ACPI ops structs were constified but the inline version
      of register_hotplug_dock_device() was overlooked (see also commit
      9c8b04be, June 25 2011). Update the inline function
      register_hotplug_dock_device() that is enabled with
      CONFIG_ACPI_DOCK=n too. This patch fixes at least the following
      compiler warnings:
      
      drivers/ata/libata-acpi.c: In function .ata_acpi_associate.:
      drivers/ata/libata-acpi.c:266:11: warning: passing argument 2 of .register_hotplug_dock_device. discards qualifiers from pointer target type
      include/acpi/acpi_drivers.h:146:19: note: expected .struct acpi_dock_ops *. but argument is of type .const struct acpi_dock_ops *.
      drivers/ata/libata-acpi.c:275:11: warning: passing argument 2 of .register_hotplug_dock_device. discards qualifiers from pointer target type
      include/acpi/acpi_drivers.h:146:19: note: expected .struct acpi_dock_ops *. but argument is of type .const struct acpi_dock_ops *.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NLen Brown <len.brown@intel.com>
      c1056b42
  4. 17 7月, 2011 1 次提交
  5. 20 10月, 2010 1 次提交
  6. 04 4月, 2010 1 次提交
  7. 24 3月, 2010 1 次提交
    • D
      acpi: Support IBM SMBus CMI devices · 222e82ac
      Darrick J. Wong 提交于
      On some old IBM workstations and desktop computers, the BIOS presents in the
      DSDT an SMBus object that is missing the HID identifier that the i2c-scmi
      driver looks for.  Modify the ACPI device scan code to insert the missing HID
      if it finds an IBM system with such an object.
      
      Affected machines: IntelliStation Z20/Z30.  Note that the i2c-i801 driver no
      longer works on these machines because of ACPI resource conflicts.
      Signed-off-by: NDarrick J. Wong <djwong@us.ibm.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      222e82ac
  8. 24 2月, 2010 1 次提交
  9. 18 6月, 2009 6 次提交
  10. 28 5月, 2009 2 次提交
  11. 05 4月, 2009 1 次提交
    • B
      ACPI: support acpi_device_ops .notify methods · 46ec8598
      Bjorn Helgaas 提交于
      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: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Reviewed-by: NAlex Chiang <achiang@hp.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      46ec8598
  12. 17 3月, 2009 1 次提交
  13. 08 11月, 2008 3 次提交
  14. 07 11月, 2008 3 次提交
    • M
      ACPI: Disambiguate processor declaration type · ad93a765
      Myron Stowe 提交于
      Declaring processors in ACPI namespace can be done using either a
      "Processor" definition or a "Device" definition (see section 8.4 -
      Declaring Processors; "Advanced Configuration and Power Interface
      Specification", Revision 3.0b).  Currently the two processor
      declaration types are conflated.
      
      This patch disambiguates the processor declaration's definition type
      enabling subsequent code to behave uniquely based explicitly on the
      declaration's type.
      Signed-off-by: NMyron Stowe <myron.stowe@hp.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      ad93a765
    • B
      ACPI: remove CONFIG_ACPI_EC · 8950d89a
      Bjorn Helgaas 提交于
      Remove CONFIG_ACPI_EC.  It was always set the same as CONFIG_ACPI,
      and it had no menu label, so there was no way to set it to anything
      other than "y".
      
      Per section 6.5.4 of the ACPI 3.0b specification,
      
          OSPM must make Embedded Controller operation regions, accessed
          via the Embedded Controllers described in ECDT, available before
          executing any control method.
      
      The ECDT table is optional, but if it is present, the above text
      means that the EC it describes is a required part of the ACPI
      subsystem, so CONFIG_ACPI_EC=n wouldn't make sense.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Acked-by: NAlexey Starikovskiy <astarikovskiy@suse.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      8950d89a
    • B
      ACPI: remove CONFIG_ACPI_POWER · fefe5ab3
      Bjorn Helgaas 提交于
      Remove CONFIG_ACPI_POWER.  It was always set the same as CONFIG_ACPI,
      and it had no menu label, so there was no way to set it to anything
      other than "y".
      
      The interfaces under CONFIG_ACPI_POWER (acpi_device_sleep_wake(),
      acpi_power_transition(), etc) are called unconditionally from the
      ACPI core, so we already depend on it always being present.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      fefe5ab3
  15. 23 10月, 2008 1 次提交
  16. 11 10月, 2008 1 次提交
    • Z
      ACPI: Enable EC device immediately after ACPI full initialization · 455c8793
      Zhao Yakui 提交于
      when there is no ECDT table and no _INI object for EC device, it will be
      enabled before scanning ACPI device. But it is too late after the following
      the commit is merged.
          >commit 7752d5cf
          > Author: Robert Hancock <hancockr@shaw.ca>
          > Date:   Fri Feb 15 01:27:20 2008 -0800
             >x86: validate against acpi motherboard resources
      
         After the above commit is merged, OS will check whether MCFG area is
      reserved in ACPI motherboard resources by calling the function of
      acpi_get_devices when there exists MCFG table. In the acpi_get_devices the _STA
      object will be evaluated to check the status of the ACPI device. On some broken
      BIOS the MYEC object of EC device is initialized as one, which indicates that
      EC operation region is already accessible before enabling EC device.So on these
      broken BIOS the EC operation region will be accessed in course of evaluating
      the _STA object before enabling EC device, which causes that OS will print the
      following warning messages:
          >ACPI Error (evregion-0315): No handler for Region [EC__] (ffff88007f8145e8)
      [EmbeddedControl] [20080609]
          >ACPI Error (exfldio-0290): Region EmbeddedControl(3) has no handler [20080321]
          >ACPI Error (psparse-0530): Method parse/execution failed [\_SB_.PCI0.SBRG.
               EC__.BAT1._STA] (Node ffff81013fc17a00), AE_NOT_EXIST
          >ACPI Error (uteval-0233): Method execution failed [\_SB_.PCI0.SBRG.EC__.BAT1.
               _STA] (Node ffff81013fc17a00), AE_NOT_EXIST
      
      Although the above warning message is harmless, it looks confusing.
      So it is necessary to enable EC device as early as possible.Maybe it is
      appropriate to enable it immediately after ACPI full initialization.
      
      http://bugzilla.kernel.org/show_bug.cgi?id=11255
      http://bugzilla.kernel.org/show_bug.cgi?id=11374
      http://bugzilla.kernel.org/show_bug.cgi?id=11660Signed-off-by: NZhao Yakui <yakui.zhao@intel.com>
      Acked-by: NAlexey Starikovskiy <astarikovskiy@suse.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      455c8793
  17. 24 9月, 2008 1 次提交
  18. 08 7月, 2008 1 次提交
  19. 07 2月, 2008 1 次提交
    • A
      ACPI: misc cleanups · e5685b9d
      Adrian Bunk 提交于
          This patch contains the following possible cleanups:
          - make the following needlessly global code static:
            - drivers/acpi/bay.c:dev_attr_eject
            - drivers/acpi/bay.c:dev_attr_present
            - drivers/acpi/dock.c:dev_attr_docked
            - drivers/acpi/dock.c:dev_attr_flags
            - drivers/acpi/dock.c:dev_attr_uid
            - drivers/acpi/dock.c:dev_attr_undock
            - drivers/acpi/pci_bind.c:acpi_pci_unbind()
            - drivers/acpi/pci_link.c:acpi_link_lock
            - drivers/acpi/sbs.c:acpi_sbs_callback()
            - drivers/acpi/sbshc.c:acpi_smbus_transaction()
            - drivers/acpi/sleep/main.c:acpi_sleep_prepare()
          - #if 0 the following unused global functions:
            - drivers/acpi/numa.c:acpi_unmap_pxm_to_node()
          - remove the following unused EXPORT_SYMBOL's:
            - acpi_register_gsi
            - acpi_unregister_gsi
            - acpi_strict
            - acpi_bus_receive_event
            - register_acpi_bus_type
            - unregister_acpi_bus_type
            - acpi_os_printf
            - acpi_os_sleep
            - acpi_os_stall
            - acpi_os_read_pci_configuration
            - acpi_os_create_semaphore
            - acpi_os_delete_semaphore
            - acpi_os_wait_semaphore
            - acpi_os_signal_semaphore
            - acpi_os_signal
            - acpi_pci_irq_enable
            - acpi_get_pxm
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Acked-by: NAlexey Starikovskiy <astarikovskiy@suse.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      e5685b9d
  20. 08 12月, 2007 1 次提交
  21. 26 9月, 2007 1 次提交
  22. 30 7月, 2007 2 次提交
    • L
      ACPI: restore CONFIG_ACPI_SLEEP · 673d5b43
      Len Brown 提交于
      Restore the 2.6.22 CONFIG_ACPI_SLEEP build option, but now shadowing the
      new CONFIG_PM_SLEEP option.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      [ Modified to work with the PM config setup changes. ]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      673d5b43
    • R
      Introduce CONFIG_SUSPEND for suspend-to-Ram and standby · 296699de
      Rafael J. Wysocki 提交于
      Introduce CONFIG_SUSPEND representing the ability to enter system sleep
      states, such as the ACPI S3 state, and allow the user to choose SUSPEND
      and HIBERNATION independently of each other.
      
      Make HOTPLUG_CPU be selected automatically if SUSPEND or HIBERNATION has
      been chosen and the kernel is intended for SMP systems.
      
      Also, introduce CONFIG_PM_SLEEP which is automatically selected if
      CONFIG_SUSPEND or CONFIG_HIBERNATION is set and use it to select the
      code needed for both suspend and hibernation.
      
      The top-level power management headers and the ACPI code related to
      suspend and hibernation are modified to use the new definitions (the
      changes in drivers/acpi/sleep/main.c are, mostly, moving code to reduce
      the number of ifdefs).
      
      There are many other files in which CONFIG_PM can be replaced with
      CONFIG_PM_SLEEP or even with CONFIG_SUSPEND, but they can be updated in
      the future.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      296699de
  23. 25 7月, 2007 1 次提交
  24. 24 7月, 2007 1 次提交
  25. 10 5月, 2007 1 次提交
  26. 17 2月, 2007 1 次提交
  27. 10 2月, 2007 1 次提交
  28. 09 2月, 2007 1 次提交
  29. 03 2月, 2007 1 次提交