linux-sg2042/drivers/platform/x86
Thomas Renninger 8dda6b0410 x86 platform drivers: hp-wmi fix buffer size depending on ACPI version
Depending on ACPI version (1.0 -> 32 bit) an integer could be
32 or 64 bit long. _WED internal concatenates two integers and
the return value will be 8 byte (2* 32 bit) or 16 byte (2* 64 bit)
long, depending on the ACPI version.

Also the data send with the WMI event is defined to be splitted into:
  - Event ID -> 4 bytes
  - Event Data -> 4 bytes

This gets messed up with new ACPI versions.
But it's a HP BIOS bug that may get fixed in the future
-> Support both, 16 and 8 byte _WED buffers.

Also the wrong assumption that from the event data sent, only the
first byte is relevant got cleaned up that it fits event_id/event_data
as described above.

Signed-off-by: Thomas Renninger <trenn@suse.de>
CC: robert.moore@intel.com
Signed-off-by: Matthew Garrett <mjg@redhat.com>
CC: platform-driver-x86@vger.kernel.org
CC: linux-acpi@vger.kernel.org
2010-08-03 09:48:43 -04:00
..
Kconfig drivers/platform/x86: Clarify the MRST IPC driver description slightly 2010-05-17 12:08:33 -04:00
Makefile IPC driver for Intel Mobile Internet Device (MID) platforms 2010-05-17 12:06:07 -04:00
acer-wmi.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
acerhdf.c drivers/platform/x86/acerhdf.c: check BIOS information whether it begins with string of table 2009-12-24 00:17:09 -05:00
asus-laptop.c asus: don't modify bluetooth/wlan on boot 2010-04-12 13:10:55 -04:00
asus_acpi.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
classmate-laptop.c classmate-laptop: Add RFKILL support. 2010-05-17 12:06:01 -04:00
compal-laptop.c backlight: Allow properties to be passed at registration 2010-03-16 19:47:54 +00:00
dell-laptop.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
dell-wmi.c dell-wmi: Fix memory leak 2010-04-12 13:10:19 -04:00
eeepc-laptop.c eeepc-laptop: add missing sparse_keymap_free 2010-04-23 15:23:21 -04:00
eeepc-wmi.c drivers/platform/x86/eeepc-wmi.c: fix build warning 2010-05-20 09:46:24 -04:00
fujitsu-laptop.c drivers/platform/x86: Use kzalloc 2010-05-20 09:26:13 -04:00
hp-wmi.c x86 platform drivers: hp-wmi fix buffer size depending on ACPI version 2010-08-03 09:48:43 -04:00
intel_menlow.c intel_menlow: fix memory leaks in error path 2010-08-03 09:48:40 -04:00
intel_scu_ipc.c intel_scu_ipc: Oops/crash fixes 2010-07-19 13:17:37 -07:00
msi-laptop.c Move N014, N051 and CR620 dmi information to load scm dmi table 2010-05-20 10:16:13 -04:00
msi-wmi.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
panasonic-laptop.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
sony-laptop.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
tc1100-wmi.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
thinkpad_acpi.c thinkpad-acpi: document backlight level writeback at driver init 2010-05-16 19:45:57 -03:00
topstar-laptop.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
toshiba_acpi.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
toshiba_bluetooth.c ACPI: replace acpi_integer by u64 2010-01-28 01:47:33 -05:00
wmi.c X86 platfrom wmi: Add debug facility to dump WMI data in a readable way 2010-05-20 09:46:21 -04:00