dell-wmi: properly process Dell Instant Launch hotkey
authorMichał Kępień <kernel@kempniu.pl>
Fri, 4 Mar 2016 13:09:09 +0000 (14:09 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 23 Mar 2016 17:05:50 +0000 (10:05 -0700)
commit13f5059ac5a6b8a824f8657e2fcf084ebecef896
tree3f5ba2d57ddd19d42892a442ff37a8678b138483
parente09c4d5b15438bd86ff8bfb05d70f17915bb5979
dell-wmi: properly process Dell Instant Launch hotkey

On models on which an SMBIOS request needs to be issued in order for WMI
events to be generated, pressing the Dell Instant Launch hotkey does not
raise an i8042 interrupt - only a WMI event is generated (0xe025 on Dell
Vostro V131).  As that WMI event is the only way the kernel will be
notified about pressing the Dell Instant Launch hotkey on such machines,
the relevant keymap entry has to be changed to a KE_KEY one.  However,
the same WMI event should still be ignored on machines which do not
require an SMBIOS request for enabling WMI, so filter it conditionally
in dell_wmi_process_key().

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/dell-wmi.c