Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3755220pxm; Tue, 1 Mar 2022 05:02:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6i5Bou9Ms7/7uPEWKNQaT4I9jCnzhyernLb0J2d9/i1Y4mJ8VY+OwC1wSeTsHy8HVdbtQ X-Received: by 2002:a1c:f607:0:b0:381:1db:d767 with SMTP id w7-20020a1cf607000000b0038101dbd767mr17157281wmc.165.1646139762412; Tue, 01 Mar 2022 05:02:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646139762; cv=none; d=google.com; s=arc-20160816; b=tnRIl+LY1m89aGF7fPbFPDmovSaQnkSqdmCMsCU2n88w01HUU3i8WTFo7xhygOzSXe GgigEET0CE5YwxeOG7URgZYuzLc/CDrYMB4qDidd8tncc0As2npjHAYm8zdW11QWOGYe 1110VNZYkUO9YRBf9ihxYUTGq/t9bfXolex/NJ5rPRaj5BcfTihKaGUcvR3NRpzQ1Xvg R3KOYZtE0hUtVeG//1y5Sf5iSQFzIXhNDD08XDvuqtzHx+dd/U9EpKkom58Zfn+12Icw Hxb62pN4vevAdkQ3AmYgAgEyZ9hUwWC9OEmlY6BK/xNW7NEUFTXvl94SgQ5atnuEz1ao VNHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=icGaIlb+8xRI7+dmr4JSyVwA8wzjwmZczIuDpdfhj24=; b=hyTAGzeSZdEaJY6RhDxp8TicPzyGF0XJAtBLb/cDrN/qGqWHo55n1cYXUficscO4vJ S27TQX91kQYu8LeL7eP4AZyADYvv43bCp14pduLc4KMgfW2l9fELqNsBdUQh3Hb4kD0B Fw4IQcC8sbIzckJhCEzsWhC1/f0jfd8IV/rXdf0SpANwsO7xTCcLNEwctZSfzaioZ0XD 0wTH7QrPN8tJ0+iRMbc2t3IuZNRkCYtuOnSHvtODlkE5c94D+YM6oh9JBFBPZ2yRY/71 BAoFJgBAsZpPfetfPSpEmMDB0ONEydjDV1pLeD8l0j9lBJm2cFAtkjuDTzUji0Aq4Y8E oXKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LqBTqVov; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ak17-20020a170906889100b006d6368b1bd2si8474405ejc.688.2022.03.01.05.02.18; Tue, 01 Mar 2022 05:02:42 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=LqBTqVov; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234196AbiCAKZW (ORCPT + 99 others); Tue, 1 Mar 2022 05:25:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231495AbiCAKZV (ORCPT ); Tue, 1 Mar 2022 05:25:21 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D175875E53 for ; Tue, 1 Mar 2022 02:24:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646130280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=icGaIlb+8xRI7+dmr4JSyVwA8wzjwmZczIuDpdfhj24=; b=LqBTqVovr7wSl3rgDy8zFr9NLnbCvEu3O9cOlAu6VQh01SrBY8N6De1GtNekAN8mQUwI1D Hn7TVxGVbWBIWICJ1EGQsbbiQyxI/jsE2werwWQF6G8UhrfXQdfFl7V2AL2Y34qsiM36g0 /P95rVKI0N4L4mS+f39I+rWQkExXjOI= Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-210-RlFC4TTKPqeeUuaN2ZYXVg-1; Tue, 01 Mar 2022 05:24:39 -0500 X-MC-Unique: RlFC4TTKPqeeUuaN2ZYXVg-1 Received: by mail-pg1-f197.google.com with SMTP id z10-20020a634c0a000000b0036c5eb39076so8297438pga.18 for ; Tue, 01 Mar 2022 02:24:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=icGaIlb+8xRI7+dmr4JSyVwA8wzjwmZczIuDpdfhj24=; b=DhKagWPukCw9lBkP5IXKUt7BFSoBGvM1F5No55Mf6IGHv8h3GNmPt2x+mJM0D/uKOf KfXRIwJmgoujUp2tV75SXsRcQTgkMs+3q9g66CUbnL3l8N+Kj5KBNDVFrz89IgAaybeO 3X+0Cc7j7HilA+BfgE66YrMGpdk4LD7Ys9gdJe3MtmtQHtxE77bIDIwf8uisaP/HR5ew JsDgIZtTyRzoyAoU8WnwDOvqt8T4bwi+4BTSAYEZnYqGXXt9eheYOcxYrbh2CqFf+XeO EzU+Jc7U8KXQMrNWDMGyatXJ7jdt0pUcnaEU1hZ6nCgtnsu9VHNomGcKZ60sStcrIJOc llTg== X-Gm-Message-State: AOAM53145fJ3NSVVX7oG7zs9c87BeYDBWWE06OGl6RVdNMSfdzaiM4Ju HuAr3M8BILUJ/rs1Pm1/ADIk0Wodi+uo0yCQrMCnfjYE3+iwuVISBH0E4Z8DUi4R0hKj/zvB8Tx fmUYbGP3KQZi+qvzZ8y36EC8FhYpRxMTA3b06k1lI X-Received: by 2002:a65:5bc3:0:b0:378:4f82:d73d with SMTP id o3-20020a655bc3000000b003784f82d73dmr15717645pgr.191.1646130277833; Tue, 01 Mar 2022 02:24:37 -0800 (PST) X-Received: by 2002:a65:5bc3:0:b0:378:4f82:d73d with SMTP id o3-20020a655bc3000000b003784f82d73dmr15717629pgr.191.1646130277636; Tue, 01 Mar 2022 02:24:37 -0800 (PST) MIME-Version: 1.0 References: <20220218233350.1.I3a7746ad05d270161a18334ae06e3b6db1a1d339@changeid> In-Reply-To: From: Benjamin Tissoires Date: Tue, 1 Mar 2022 11:24:26 +0100 Message-ID: Subject: Re: [PATCH v2] HID: Add mapping for KEY_ALL_APPLICATIONS To: Dmitry Torokhov Cc: William Mahon , LKML , William Mahon , Jiri Kosina , "open list:HID CORE LAYER" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 On Tue, Mar 1, 2022 at 8:28 AM Dmitry Torokhov wrote: > > On Fri, Feb 18, 2022 at 11:35:49PM +0000, William Mahon wrote: > > This patch adds a new key definition for KEY_ALL_APPLICATIONS > > which is an alias of KEY_DASHBOARD. > > > > It also maps the 0x0c/0x2a2 usage code to KEY_ALL_APPLICATIONS. > > Jiri, Benjamin, OK for me to pick it up? Acked-by: Benjamin Tissoires Cheers, Benjamin > > > > > Signed-off-by: William Mahon > > --- > > > > drivers/hid/hid-input.c | 2 ++ > > include/uapi/linux/input-event-codes.h | 1 + > > 2 files changed, 3 insertions(+) > > > > diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c > > index eccd89b5ea9f..c3e303c1d8d1 100644 > > --- a/drivers/hid/hid-input.c > > +++ b/drivers/hid/hid-input.c > > @@ -1162,6 +1162,8 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel > > > > case 0x29d: map_key_clear(KEY_KBD_LAYOUT_NEXT); break; > > > > + case 0x2a2: map_key_clear(KEY_ALL_APPLICATIONS); break; > > + > > case 0x2c7: map_key_clear(KEY_KBDINPUTASSIST_PREV); break; > > case 0x2c8: map_key_clear(KEY_KBDINPUTASSIST_NEXT); break; > > case 0x2c9: map_key_clear(KEY_KBDINPUTASSIST_PREVGROUP); break; > > diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h > > index 311a57f3e01a..e520f22c1b8d 100644 > > --- a/include/uapi/linux/input-event-codes.h > > +++ b/include/uapi/linux/input-event-codes.h > > @@ -279,6 +279,7 @@ > > #define KEY_PROG3 202 > > #define KEY_PROG4 203 > > #define KEY_DASHBOARD 204 /* AL Dashboard */ > > +#define KEY_ALL_APPLICATIONS KEY_DASHBOARD > > #define KEY_SUSPEND 205 > > #define KEY_CLOSE 206 /* AC Close */ > > #define KEY_PLAY 207 > > -- > > 2.35.1.473.g83b2b277ed-goog > > > > -- > Dmitry >