aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/hp_accel.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2014-11-11 20:21:22 +0100
committerDarren Hart <dvhart@linux.intel.com>2014-11-19 09:25:31 -0800
commit83fc44c32ad8b8bb359d6d0e93071b6b23e831d5 (patch)
tree0bf9aa3be5077e99d8634a137114cf762326ba5b /drivers/platform/x86/hp_accel.c
parenteeepc-laptop: clean up control flow in eeepc_acpi_notify (diff)
downloadlinux-dev-83fc44c32ad8b8bb359d6d0e93071b6b23e831d5.tar.xz
linux-dev-83fc44c32ad8b8bb359d6d0e93071b6b23e831d5.zip
dell-wmi: Update code for processing WMI events
The WMI buffer can contain multiple events. First value in buffer is length of event followed by data of specified length. After that is next length and next data. When length is zero then there is no more events in bufffer. This patch adds support for processing all events in buffer (not only first) and parse more event types (not only hotkey events). Because of variable length of events sometimes BIOS fills more hotkeys (or other values) into single WMI event. In this case this patch also processes these multiple hotkeys (and not only first one). Some event types are just ignored because kernel is not interested in them (e.g. NIC Link status, battery unplug, ...). This patch is based on DSDT table from Dell Latitude E6440. Code should be backward compatible so will process other events of old types same as before this patch. This patch also fixes a problem with unknown WMI event messages being written to the log. Now all known events are parsed and those which are not interesting to the kernel are dropped without an unknown WMI event message. Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Tested-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions