summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
Commit message (Collapse)AuthorAgeFilesLines
* ACPI: ACPICA 20060707Bob Moore2006-07-0917-106/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers that do not allow the initialization of address pointers within packed structures - even though the hardware itself may support misaligned transfers. Some of the debug data structures are packed by default to minimize size. Added an error message for the case where acpi_os_get_thread_id() returns zero. A non-zero value is required by the core ACPICA code to ensure the proper operation of AML mutexes and recursive control methods. The DSDT is now the only ACPI table that determines whether the AML interpreter is in 32-bit or 64-bit mode. Not really a functional change, but the hooks for per-table 32/64 switching have been removed from the code. A clarification to the ACPI specification is forthcoming in ACPI 3.0B. Fixed a possible leak of an Owner ID in the error path of tbinstal.c acpi_tb_init_table_descriptor() and migrated all table OwnerID deletion to a single place in acpi_tb_uninstall_table() to correct possible leaks when using the acpi_tb_delete_tables_by_type() interface (with assistance from Lance Ortiz.) Fixed a problem with Serialized control methods where the semaphore associated with the method could be over-signaled after multiple method invocations. Fixed two issues with the locking of the internal namespace data structure. Both the Unload() operator and acpi_unload_table() interface now lock the namespace during the namespace deletion associated with the table unload (with assistance from Linn Crosetto.) Fixed problem reports (Valery Podrezov) integrated: - Eliminate unnecessary memory allocation for CreateXxxxField http://bugzilla.kernel.org/show_bug.cgi?id=5426 Fixed problem reports (Fiodor Suietov) integrated: - Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) - On Address Space handler deletion, needless deactivation call (BZ 374) - AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) - Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone (BZ 376) - AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) - Minimum Length of RSDT should be validated (BZ 379) - AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no Handler (BZ (380) - AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded (BZ 381) Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
* Merge branch 'release' of ↵Linus Torvalds2006-07-0329-308/+2724
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (44 commits) ACPI: remove function tracing macros from drivers/acpi/*.c ACPI: add support for Smart Battery ACPI: handle battery notify event on broken BIOS ACPI: handle AC notify event on broken BIOS ACPI: asus_acpi: add S1N WLED control ACPI: asus_acpi: correct M6N/M6R display nodes ACPI: asus_acpi: add S1N WLED control ACPI: asus_acpi: rework model detection ACPI: asus_acpi: support L5D ACPI: asus_acpi: handle internal Bluetooth / support W5A ACPI: asus_acpi: support A4G ACPI: asus_acpi: support W3400N ACPI: asus_acpi: LED display support ACPI: asus_acpi: support A3G ACPI: asus_acpi: misc cleanups ACPI: video: Remove unneeded acpi_handle from driver. ACPI: thermal: Remove unneeded acpi_handle from driver. ACPI: power: Remove unneeded acpi_handle from driver. ACPI: pci_root: Remove unneeded acpi_handle from driver. ACPI: pci_link: Remove unneeded acpi_handle from driver. ...
| * Pull smart-battery into release branchLen Brown2006-07-019-14/+2355
| |\
| | * ACPI: remove function tracing macros from drivers/acpi/*.cLen Brown2006-07-014-138/+56
| | | | | | | | | | | | | | | | | | a few invocations appeared due to the SBS and other patches. Signed-off-by: Len Brown <len.brown@intel.com>
| | * ACPI: add support for Smart BatteryRich Townsend2006-07-018-11/+2434
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most batteries today are ACPI "Control Method" batteries, but some models ship with the older "Smart Battery" that requires this code. Rich Townsend and Bruno Ducrot were the original authors. Vladimir Lebedev updated to run on latest kernel. http://bugzilla.kernel.org/show_bug.cgi?id=3734 Signed-off-by: Len Brown <len.brown@intel.com>
| * | Pull bugzilla-3241 into release branchLen Brown2006-07-012-4/+8
| |\ \
| | * | ACPI: handle battery notify event on broken BIOSVladimir Lebedev2006-07-011-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | http://bugzilla.kernel.org/show_bug.cgi?id=3241 Signed-off-by: Vladimir Lebedev <vladimir.p.lebedev@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | ACPI: handle AC notify event on broken BIOSChristian Lupien2006-07-011-2/+4
| | |/ | | | | | | | | | | | | | | | | | | | | | http://bugzilla.kernel.org/show_bug.cgi?id=3241 updated by Vladimir Lebedev Signed-off-by: Len Brown <len.brown@intel.com>
| | * Pull asus_acpi-0.30 into release branchLen Brown2006-07-011-108/+223
| | |\
| | | * ACPI: asus_acpi: add S1N WLED controlKarol Kozimor2006-06-301-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch switches back the display nodes for M6R and M6N -- this happened a while ago when a patch was misapplied (only the in-tree version was affected). Signed-off-by: Karol Kozimor <sziwan@hell.org.pl> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | Pull acpi_device_handle_cleanup into release branchLen Brown2006-07-0110-148/+111
| | |\ \
| * | \ \ Pull asus_acpi-0.30 into release branchLen Brown2006-07-011-108/+223
| |\ \ \ \
| | * | | | ACPI: asus_acpi: correct M6N/M6R display nodesKarol Kozimor2006-07-011-2/+3
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch switches back the display nodes for M6R and M6N -- this happened a while ago when a patch was misapplied (only the in-tree version was affected). Signed-off-by: Karol Kozimor <sziwan@hell.org.pl> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: asus_acpi: add S1N WLED controlKarol Kozimor2006-06-301-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This small patch adds back WLED control for S1N models, this was accidentally removed a while ago. Signed-off-by: Karol Kozimor <sziwan@hell.org.pl> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: asus_acpi: rework model detectionKarol Kozimor2006-06-301-90/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch reworks laptop model detection. This addresses the Samsung P30 issue, where the INIT method would return no object, but the implicit return in the AML interpreter would confuse the driver. It also accounts for a newer batch of Asus models whose INIT returns ACPI_TYPE_BUFFER instead of STRING. The handling is now much leaner, if we get a buffer or a string, we check against known values, in every other case we use a different path (currently DSDT signatures). The bulk of this patch is separating the string matching from asus_hotk_get_info() into a separate function. This patch properly fixes http://bugme.osdl.org/show_bug.cgi?id=5067 and http://bugme.osdl.org/show_bug.cgi?id=5092 and makes the driver fully functional again with acpi=strict on all machines. Signed-off-by: Karol Kozimor <sziwan@hell.org.pl> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: asus_acpi: support L5DKarol Kozimor2006-06-301-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for Asus L5D and thus fixes http://bugme.osdl.org/show_bug.cgi?id=4695 Signed-off-by: Karol Kozimor <sziwan@hell.org.pl> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: asus_acpi: handle internal Bluetooth / support W5AKarol Kozimor2006-06-301-4/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch creates a new file named "bluetooth" under /proc/acpi/asus/. This file controls both the internal Bluetooth adapter's presence on the USB bus and the associated LED. echo 1 > /proc/acpi/asus/bluetooth to enable, 0 to disable. Additionally, the patch add support for Asus W5A, the first model that uses this feature. Patch originally by Fernando A. P. Gomes. Signed-off-by: Karol Kozimor <sziwan@hell.org.pl> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: asus_acpi: support A4GKarol Kozimor2006-06-301-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for Asus A4G. Originally by Giuseppe Rota. Signed-off-by: Karol Kozimor <sziwan@hell.org.pl> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: asus_acpi: support W3400NKarol Kozimor2006-06-301-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for Asus W3400N. Signed-off-by: Karol Kozimor <sziwan@hell.org.pl> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: asus_acpi: LED display supportKarol Kozimor2006-06-301-6/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds handling for front LED displays found on W1N and the like. Additionally, W1N is given its own model_data instance. Patch originally by Éric Burghard. Signed-off-by: Karol Kozimor <sziwan@hell.org.pl> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: asus_acpi: support A3GKarol Kozimor2006-06-301-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for Asus A3G. Signed-off-by: Karol Kozimor <sziwan@hell.org.pl> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: asus_acpi: misc cleanupsKarol Kozimor2006-06-301-20/+7
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch updates the version string, copyright notices and does whitespace cleanup (it looks weird, blame Lindent). Signed-off-by: Karol Kozimor <sziwan@hell.org.pl> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | Pull kmalloc into release branchLen Brown2006-06-3015-35/+28
| | |\ \
| * | \ \ Pull acpi_device_handle_cleanup into release branchLen Brown2006-07-0110-148/+111
| |\ \ \ \ | | | |_|/ | | |/| |
| | * | | ACPI: video: Remove unneeded acpi_handle from driver.Patrick Mochel2006-06-301-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: thermal: Remove unneeded acpi_handle from driver.Patrick Mochel2006-06-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: power: Remove unneeded acpi_handle from driver.Patrick Mochel2006-06-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: pci_root: Remove unneeded acpi_handle from driver.Patrick Mochel2006-06-301-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: pci_link: Remove unneeded acpi_handle from driver.Patrick Mochel2006-06-301-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: fan: Remove unneeded acpi_handle from driver.Patrick Mochel2006-06-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: button: Remove unneeded acpi_handle from driver.Patrick Mochel2006-06-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: battery: Remove unneeded acpi_handle from driver.Patrick Mochel2006-06-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: acpi_memhotplug: Remove unneeded acpi_handle from driver.Patrick Mochel2006-06-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: ac: Remove unneeded acpi_handle from driver.Patrick Mochel2006-06-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: video: Use acpi_device's handle instead of driver'sPatrick Mochel2006-06-301-32/+30
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: thermal: Use acpi_device's handle instead of driver'sPatrick Mochel2006-06-301-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: power: Use acpi_device's handle instead of driver'sPatrick Mochel2006-06-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: pci_root: Use acpi_device's handle instead of driver'sPatrick Mochel2006-06-301-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: pci_link: Use acpi_device's handle instead of driver'sPatrick Mochel2006-06-301-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: fan: Use acpi_device's handle instead of driver'sPatrick Mochel2006-06-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: button: Use acpi_device's handle instead of driver'sPatrick Mochel2006-06-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: battery: Use acpi_device's handle instead of driver'sPatrick Mochel2006-06-301-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: acpi_memhotplug: Use acpi_device's handle instead of driver'sPatrick Mochel2006-06-301-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: ac: Use acpi_device's handle instead of driver'sPatrick Mochel2006-06-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: video: add struct acpi_device to struct acpi_video_bus.Patrick Mochel2006-06-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use it instead of acpi_bus_get_device() in acpi_video_bus_notify() and use the one from struct acpi_video_device in acpi_video_device_notify(). Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: power: add struct acpi_device to struct acpi_power_resourcePatrick Mochel2006-06-301-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use it instead of acpi_bus_get_device() where we can.. Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: thermal: add struct acpi_device to struct acpi_thermal.Patrick Mochel2006-06-301-20/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use it instead of acpi_bus_get_device() where we can.. Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: pci root: add struct acpi_device to struct acpi_pci_root.Patrick Mochel2006-06-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: fan: add struct acpi_device to struct acpi_fan.Patrick Mochel2006-06-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
| | * | | ACPI: battery: add struct acpi_device to struct acpi_battery.Patrick Mochel2006-06-301-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use it instead of acpi_bus_get_device().. Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
OpenPOWER on IntegriCloud