From patchwork Wed Jun 15 19:49:12 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: 9179257 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 5174660831 for ; Wed, 15 Jun 2016 19:50:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EEEC26538 for ; Wed, 15 Jun 2016 19:50:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33D3E2793B; Wed, 15 Jun 2016 19:50:23 +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=ham 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 C50BC269E2 for ; Wed, 15 Jun 2016 19:50:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932084AbcFOTuV (ORCPT ); Wed, 15 Jun 2016 15:50:21 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35171 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932769AbcFOTth (ORCPT ); Wed, 15 Jun 2016 15:49:37 -0400 Received: by mail-wm0-f66.google.com with SMTP id k184so6439934wme.2; Wed, 15 Jun 2016 12:49:36 -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=Nk6Cyz8XoMR9/qup+aC0c48Iig626ixzhC9SzJq2+zo=; b=N9+DOWX5H49FjeDWvJwnduZcQEsMtoq90LpvJhSog1vhqc/hZ/+kh3jCj0oy+Ttz/S LHdesDtHOMEzqiVIR4C1h5mgQ1wWixP0WI03ySxhp0UJFNla7loO9fWemKdsfvjdiYd8 aEchanaQmfsnCeCheUUxTA+4NCQbdSsSAzclsrtNKZ1+UgdFBw9bcBbZoTEq+HMGveJx FiGSVRenvURI+WOUD3LWC9RPPZQHkUbGyDn3fHbeUa7exLs/N9mxlVeK4fWmSGI8Snup lBv45s5M6C7oa2XPH2PswqoLI8aeWyOLWRasSk3UgiG1fqj0HqZwgAnkpCxGfwBHQKYQ cGFA== 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=Nk6Cyz8XoMR9/qup+aC0c48Iig626ixzhC9SzJq2+zo=; b=U8Lf6x0LXKYodN/TTrUnzQowRKKLl0Z8+7EapsSKPrfWfzod07Lvoh+c+TPU5HHsAK ic+ixd1nstC2NVMDb62BPkz/2WzmUjjAe+NCwuQ1xj+0KvnvNUTMtV+Tm+v7iS+r6ZjG yuKwUpEZcxeMpv19CqEgge7vrZjW0hdhgsxeDeKy3/3CcE9wmugL/HqAJJ3xghDx2Emp Q+j6Yii+vGQ+jCAgJu+7mys51ZP0Cp8MLcP9Y+vRnS7gI5O58OXomQsXIHQYXvA0GByW R9CoL8OXjyZz05UWRit6tABdat2M16LlXtAWgh+E8LDRP0EQWw38LUpPne9+W/kx4Z5+ XDYA== X-Gm-Message-State: ALyK8tKHf3ip7iGu1OZW2brDnnMrmi9eb3VxOseXhT5rclLWSVTh6PbFW9AQ7OeiS74PUg== X-Received: by 10.28.48.15 with SMTP id w15mr11778737wmw.28.1466020176104; Wed, 15 Jun 2016 12:49:36 -0700 (PDT) Received: from Pali-Latitude.lan (pali.kolej.mff.cuni.cz. [78.128.193.202]) by smtp.gmail.com with ESMTPSA id bh4sm10119170wjc.43.2016.06.15.12.49.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jun 2016 12:49:35 -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 v3 3/4] dell-wmi: Add information about other WMI event codes Date: Wed, 15 Jun 2016 21:49:12 +0200 Message-Id: <1466020153-10877-4-git-send-email-pali.rohar@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1466020153-10877-1-git-send-email-pali.rohar@gmail.com> References: <1466020153-10877-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 Reviewed-by: Michał Kępień --- 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 b3b9970..41ae79d 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 } },