OSDN Git Service

platform/x86: peaq-wmi: Add DMI check before binding to the WMI interface
authorHans de Goede <hdegoede@redhat.com>
Thu, 5 Oct 2017 18:04:04 +0000 (20:04 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 8 Oct 2017 18:07:12 +0000 (21:07 +0300)
commit3b95206110a2c13076c3a7fa8ddeae36c2dbcf42
tree2cdf0793fc20ccceff5d78254d3c872fcf878e30
parentdfea7e18276c6a702860c927298e15d4a4c2569d
platform/x86: peaq-wmi: Add DMI check before binding to the WMI interface

It seems that the WMI GUID used by the PEAQ 2-in-1 WMI hotkeys is not
as unique as a GUID should be and is used on some other devices too.

This is causing spurious key-press reports on these other devices.

This commits adds a DMI check to the PEAQ 2-in-1 WMI hotkeys driver to
ensure that it is actually running on a PEAQ 2-in-1, fixing the
spurious key-presses on these other devices.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1497861
BugLink: https://bugzilla.suse.com/attachment.cgi?id=743182
Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/peaq-wmi.c