Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1170635iol; Sun, 12 Jun 2022 08:03:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhcez+k+nD6oKtOYo1G1J6Fj4CF9ZSN48AadUmBNifx518gULtUAiH8NNoDIss1quBszvK X-Received: by 2002:a17:903:291:b0:168:c6b3:1976 with SMTP id j17-20020a170903029100b00168c6b31976mr8172607plr.9.1655046187313; Sun, 12 Jun 2022 08:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655046187; cv=none; d=google.com; s=arc-20160816; b=OA2VmDQVj/ykObaQu2qBMd6APxlV6KCjmdPs6Wfhe6hHXsjZ3PcK0If8MjXrqvb8Yn HSQNLeZHiZtJ3eWNnhXMn8L8QcU/XZOIqUbHkVtMAS9UWTi5ZjDjSr9GuHD2TjY12oDI zVRC3gTiCRTfdMGGdKJSXRKiCgGQNBMVCFRS4+rwaHS9SOnJF1a2zYLkr6OdfzTFd8+T j5WmI8AMmErcuEQXUhM/xElXwv5TZsnxurCofYefg0Yhg83fM5LNasfthGguoZZA2Svj syC/TjPQ+ac9qqn3ugro7DYrNqK7VnhKK6prLzb4CPrboDUr7km2V62I+c67Arqik3Fw nqXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vu64RzOJf4/VV9twaNb7oWG1XNBPJ9un68Ks7Bwxb2o=; b=yW7qf9yRUhutlf/Ho1WejtBDChdbVp0OZKYhfaMVUoiDYyZDov/tWjgs3RaTkrFMpG U0i4I5GVzJs3Moil0twimrAhWHM7ScMLtLkHLmWme5vb1CjMJSm2dtnaeynLbQNetjPE LipGABHZ4QQXZ3W8q9u+/O9sfD5TcBG8kXCeScqMrWZiNvEab1QtssXwuA2c0SB5ZTpJ zfFrjcM3zt2hQEqzc8DMxIWfCDsmYAAt2wZbb9jiDodkx3CAxltFeKUevcDIwjlt6lfU mbsVVrbn0wj7cCgcI+Mc33sutiA0q/QytK1Dg6eznI5n2YbC2L9yp8M9fJ5uzClk7R8W lbnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=W8r7qgMs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a1709026a8b00b00153b2d16615si5907381plk.541.2022.06.12.08.02.54; Sun, 12 Jun 2022 08:03:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=W8r7qgMs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235423AbiFLJGB (ORCPT + 99 others); Sun, 12 Jun 2022 05:06:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235439AbiFLJF5 (ORCPT ); Sun, 12 Jun 2022 05:05:57 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60DFA517C1; Sun, 12 Jun 2022 02:05:56 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id u12so5729526eja.8; Sun, 12 Jun 2022 02:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vu64RzOJf4/VV9twaNb7oWG1XNBPJ9un68Ks7Bwxb2o=; b=W8r7qgMsMG8np/sP2HU6tzocZ4b6xTTFF2Fgh2QyIRC6HLiAyNTX17FswpDu1bzEPk uXJigNkboNhsvXUK21u8ZaL09uTw4NGI3+GnV18zgByA1pEToT7B8ZM596GJgit8TmYT S4+VtWRuRrXt/p0g6pGQOPW4cMzFuWITSrbY3NlGrA9JTBPTkHXicnZMcs5KMjPUnCjX 0S5UjJ7ggLfLTThPGSfbiI6OdakNuXRmUMR7r6b3EAdVNZcZvjh72BmiH1gjo1CfzKIy IqVdXPuEeNJl8Euj5xPiAOjbq6QrlafDkNT0V/f+/wg7SOJlxJL7R1vZzneq5SR5zGZt 5T1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vu64RzOJf4/VV9twaNb7oWG1XNBPJ9un68Ks7Bwxb2o=; b=Uopu3u+Yh+I/gXZKiZi634tWlRaEld2/q0L2crkMUqgmoIfmf6DCn3olvHBLitmvkw i8Q7T4Z9G0U+UWhRAXf6C3aILlBGaD+KAElmzO7XcjQpAHKSEIhEQrerweNJqIV7kzef PdqLU6/6CkyF1+vf5d1gUnmr+eWvxc3MteBVqZga+H34GT3uhyk7Av1hYl6AsoBjQ37k 5agjKG9Xr8fFY113Ylzo71zBrsh3wznQhHJwE0lBwjUcrKrXspiyPm+Fzc3SXsBLPdVL K8kxEaysOQe82z4iD70Y6dmtRUTpZpjWrENiJ9IwnbKlISvlAcPN517DHd0WKYvDhoM+ TAXQ== X-Gm-Message-State: AOAM531vXgqYTl1lWwWY1M7O2SjWh4ZmlxulKPD6rD1cLICB99wqtFmE L2/hqSXW5yIeSb/p7IP5goI= X-Received: by 2002:a17:906:2cc3:b0:70d:b6c8:f83b with SMTP id r3-20020a1709062cc300b0070db6c8f83bmr44230739ejr.770.1655024754991; Sun, 12 Jun 2022 02:05:54 -0700 (PDT) Received: from strolchi.home.s3e.de (p3ee2bf2d.dip0.t-ipconnect.de. [62.226.191.45]) by smtp.gmail.com with ESMTPSA id o18-20020aa7c7d2000000b004335e08d6c9sm2860075eds.33.2022.06.12.02.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jun 2022 02:05:54 -0700 (PDT) From: stefan.seyfried@googlemail.com To: kenneth.t.chan@gmail.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Seyfried Subject: [PATCH 2/2] platform/x86: panasonic-laptop: allow to use all hotkeys Date: Sun, 12 Jun 2022 11:05:07 +0200 Message-Id: <20220612090507.20648-3-stefan.seyfried@googlemail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220612090507.20648-1-stefan.seyfried@googlemail.com> References: <20200821181433.17653-8-kenneth.t.chan@gmail.com> <20220612090507.20648-1-stefan.seyfried@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Seyfried commit ed83c9171829 broke the hotkeys on my Toughbook CF-51. I'm questioning the general validity of that commit, but as I only have a single machine to test, add a module parameter to allow making it work at runtime. Fixes: ed83c9171829 platform/x86: panasonic-laptop: Resolve hotkey double trigger bug Signed-off-by: Stefan Seyfried --- drivers/platform/x86/panasonic-laptop.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/panasonic-laptop.c b/drivers/platform/x86/panasonic-laptop.c index ca6137f4000f..83acae75aee2 100644 --- a/drivers/platform/x86/panasonic-laptop.c +++ b/drivers/platform/x86/panasonic-laptop.c @@ -141,6 +141,9 @@ MODULE_AUTHOR("Martin Lucina "); MODULE_AUTHOR("Kenneth Chan "); MODULE_DESCRIPTION("ACPI HotKey driver for Panasonic Let's Note laptops"); MODULE_LICENSE("GPL"); +static bool hotkey_input; +module_param(hotkey_input, bool, 0644); +MODULE_PARM_DESC(hotkey_input, "Send all hotkeys to the input subsystem"); #define LOGPREFIX "pcc_acpi: " @@ -785,7 +788,7 @@ static void acpi_pcc_generate_keyinput(struct pcc_acpi *pcc) } /* for the magic values, see panasonic_keymap[] above */ - if (key == 7 || key == 9 || key == 10) { + if (hotkey_input || key == 7 || key == 9 || key == 10) { if (!sparse_keymap_report_event(hotk_input_dev, key, updown, false)) pr_err("Unknown hotkey event: 0x%04llx\n", result); -- 2.36.1