From patchwork Tue Jun 7 23:32:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 9162845 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3EA0F60467 for ; Tue, 7 Jun 2016 23:34:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FC4E2835C for ; Tue, 7 Jun 2016 23:34:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 245F12836D; Tue, 7 Jun 2016 23:34:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5E602835C for ; Tue, 7 Jun 2016 23:34:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932371AbcFGXcy (ORCPT ); Tue, 7 Jun 2016 19:32:54 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35388 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932474AbcFGXcx (ORCPT ); Tue, 7 Jun 2016 19:32:53 -0400 Received: by mail-wm0-f68.google.com with SMTP id k184so21407077wme.2; Tue, 07 Jun 2016 16:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wzKRjdco3Xy4YmJq6k6I55OwhMSDYx+f5fDn5HoH0oE=; b=S5yMqqJPEW0+HCH32CHhntmKJkOs9WvizDNFqfhlP4u0EmzaJKpEiuGhYRUx/tz65X UXTTVwZR18u8R6C7BoOYJUa7Z/NlM7M3DDbQw4V1+XCY0VU+E5gXH/AYkEE0xCjC1psb rBG4l4Q32+Wp7k7pp8QZaSrNSZHJm99nmgGptIWHAX9J9290A7tBvIzIMLU8bDpJljz5 DRAVQa5XmaCwpq0LxYXRMtsoUg7RKwnWxv0My4cPqMFOpI3Ox0j1t6mw12B34XbTlZ+3 wAPrPpL90b3pmGqhKcdAvAZ4Z8NVlhuVxDJt0J2Z+0Kx9Z7muXEPzQG+x7eV82UwZZWm jvsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wzKRjdco3Xy4YmJq6k6I55OwhMSDYx+f5fDn5HoH0oE=; b=cORIbfSqoCBcSbT3+ubAsLd/VRoCS2BMv3feOtUyIuydXLoGEVUFYPVAVt3H9mh9dg IPzLrutaUmi0gH1CwHyzsCYj06oRgJiVAVD96EWekJ4rktuqtJrhgrJWoMg5g9sqJlqe bBdmclRAtsSqkKGBlIxJbB8nI9Q3q8bipAdLWj1Abo4ckDhqhcZ/BH5QENRNM9tN21JA 3uDbYAqn9KzK/Do+cAUT5ymS1NfTBpf1JdomBu/MqXeo2XRwmhujdmp8ymncekocuYjW FnhXBIsO2Tjp48EiNFMMC9KVYq2EsGL1RNNnlLhzuEWUaUNaShErFOXpcLHQL7q9HBlE dIcA== X-Gm-Message-State: ALyK8tIwAvG1Q9JCt59Q8TgQzNBGoWFZqICyEM3QKupu+kFpeMNoFFz3Gd7p/DACouBuwA== X-Received: by 10.28.152.130 with SMTP id a124mr4946299wme.98.1465342371409; Tue, 07 Jun 2016 16:32:51 -0700 (PDT) Received: from Pali-Latitude.lan (pali.kolej.mff.cuni.cz. [78.128.193.202]) by smtp.gmail.com with ESMTPSA id d195sm21742155wmd.12.2016.06.07.16.32.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 16:32:50 -0700 (PDT) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Matthew Garrett , Darren Hart , Gabriele Mazzotta , =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Cc: Mario Limonciello , Andy Lutomirski , Alex Hung , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= Subject: [PATCH v2 3/4] dell-wmi: Add information about other WMI event codes Date: Wed, 8 Jun 2016 01:32:26 +0200 Message-Id: <1465342347-20635-4-git-send-email-pali.rohar@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1465342347-20635-1-git-send-email-pali.rohar@gmail.com> References: <1465342347-20635-1-git-send-email-pali.rohar@gmail.com> MIME-Version: 1.0 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ACPI DSDT tables have defined other WMI codes, but does not contain any description when those codes are emitted. Some other codes can be found in logs on internet. In this patch are all which I saw, but lot of them are not tested properly (e.g. for duplicate events with AT keyboard). Now we have all WMI event codes at one place and in future after proper testing those codes can be correctly enabled or disabled... Signed-off-by: Pali Rohár Tested-by: Michał Kępień Tested-by: Gabriele Mazzotta --- drivers/platform/x86/dell-wmi.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c index 6750604..a406f01 100644 --- a/drivers/platform/x86/dell-wmi.c +++ b/drivers/platform/x86/dell-wmi.c @@ -109,6 +109,9 @@ static const struct key_entry dell_wmi_legacy_keymap[] __initconst = { /* BIOS error detected */ { KE_IGNORE, 0xe00d, { KEY_RESERVED } }, + /* Unknown, defined in ACPI DSDT */ + /* { KE_IGNORE, 0xe00e, { KEY_RESERVED } }, */ + /* Wifi Catcher */ { KE_KEY, 0xe011, { KEY_PROG2 } }, @@ -117,21 +120,45 @@ static const struct key_entry dell_wmi_legacy_keymap[] __initconst = { { KE_IGNORE, 0xe020, { KEY_MUTE } }, + /* Unknown, defined in ACPI DSDT */ + /* { KE_IGNORE, 0xe023, { KEY_RESERVED } }, */ + + /* Untested, Dell Instant Launch key on Inspiron 7520 */ + /* { KE_IGNORE, 0xe024, { KEY_RESERVED } }, */ + /* Dell Instant Launch key */ { KE_KEY, 0xe025, { KEY_PROG4 } }, /* Audio panel key */ { KE_IGNORE, 0xe026, { KEY_RESERVED } }, + /* Untested, Multimedia key on Dell Vostro 3560 */ + /* { KE_IGNORE, 0xe028, { KEY_RESERVED } }, */ + /* Dell Instant Launch key */ { KE_KEY, 0xe029, { KEY_PROG4 } }, + /* Untested, Windows Mobility Center button on Inspiron 7520 */ + /* { KE_IGNORE, 0xe02a, { KEY_RESERVED } }, */ + + /* Unknown, defined in ACPI DSDT */ + /* { KE_IGNORE, 0xe02b, { KEY_RESERVED } }, */ + + /* Untested, Dell Audio With Preset Switch button on Inspiron 7520 */ + /* { KE_IGNORE, 0xe02c, { KEY_RESERVED } }, */ + { KE_IGNORE, 0xe02e, { KEY_VOLUMEDOWN } }, { KE_IGNORE, 0xe030, { KEY_VOLUMEUP } }, { KE_IGNORE, 0xe033, { KEY_KBDILLUMUP } }, { KE_IGNORE, 0xe034, { KEY_KBDILLUMDOWN } }, { KE_IGNORE, 0xe03a, { KEY_CAPSLOCK } }, + /* NIC Link is Up */ + { KE_IGNORE, 0xe043, { KEY_RESERVED } }, + + /* NIC Link is Down */ + { KE_IGNORE, 0xe044, { KEY_RESERVED } }, + /* * This entry is very suspicious! * Originally Matthew Garrett created this dell-wmi driver specially for @@ -144,7 +171,15 @@ static const struct key_entry dell_wmi_legacy_keymap[] __initconst = { */ { KE_IGNORE, 0xe045, { KEY_NUMLOCK } }, + /* Scroll lock and also going to tablet mode on portable devices */ { KE_IGNORE, 0xe046, { KEY_SCROLLLOCK } }, + + /* Untested, going from tablet mode on portable devices */ + /* { KE_IGNORE, 0xe047, { KEY_RESERVED } }, */ + + /* Dell Support Center key */ + { KE_IGNORE, 0xe06e, { KEY_RESERVED } }, + { KE_IGNORE, 0xe0f7, { KEY_MUTE } }, { KE_IGNORE, 0xe0f8, { KEY_VOLUMEDOWN } }, { KE_IGNORE, 0xe0f9, { KEY_VOLUMEUP } },