Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp941299rwb; Thu, 22 Sep 2022 08:12:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6gjOEmjmEQjBpxM74PwbsVCRpGXydv4deQerlsFUrhOcIvwUsGQjTv3MSj2Ucr9tP6IMaX X-Received: by 2002:a17:907:2d09:b0:781:d793:f51e with SMTP id gs9-20020a1709072d0900b00781d793f51emr3208305ejc.628.1663859555510; Thu, 22 Sep 2022 08:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663859555; cv=none; d=google.com; s=arc-20160816; b=EniF9zEukm+lnEdXwUERopGOLs/CX4yFk5zN32Jg4Xvi8CAUd40O65j9qF4+qm6LfS hoEHnEQDT3JL45BdkwXFaYE5t8TUeKH6ap+w1LuqV7pPu2XMlg4Aopib3EGb8EiPNIyE Su43AnE7rAuQwht925vumK/Mo5Wm9k9XekQVDaFj7cyCT4PFPJTZEzjIDlv9EymHVNSQ TQZaf/eWJz2t3rknjZY/1MMJw7K/2Lt2B6e0Qv2JNFctaP9bZLXhmIcO4b1s72m0IBOj 3M9Ke29H6uHmJ7Uqpk5MpxNjdn7lTMHZWKBHrHt7AOxuOqv1NBFIfb0iEhATQwIrNVoK 8PTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/F0qe1lhItT1A+QcYyxTHDycUT0wDP1KvrB5Oq141AY=; b=jwdEa+MmsO+FSTXYmQsFu25fKaaA6sREHnjTb6oxvT1DaGbhcqUUB9GNDCBdXYvwjz XnqKmpKvH0d+beeYOtyNnszCVsiuGrthLleI7VoFIkz7doEMB0hM6YFf4aNRPyJvAJIo of6Fk9iFHHPOIGisPGCB5L/f4DfmMzxBoM/lQGufbM2Pl3i8ffCIWfcWR4sQ07XWX/D7 wHnFPwrdn/wkbrkXrleA82bB226U5iKnyk4hlekGQ/PRMMhUBYWTUUMb87NVzUAosT9u ZW6ItyLVL4wHJoIhmPcBkRoGxnjusgeHLCgTwylkbSbtRuwcobw84oAuAxO+J4Zi8W8l 2IkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RInpn4A6; 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 n26-20020a5099da000000b0044e75947227si5735338edb.591.2022.09.22.08.12.04; Thu, 22 Sep 2022 08:12:35 -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=@redhat.com header.s=mimecast20190719 header.b=RInpn4A6; 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 S231855AbiIVN5l (ORCPT + 99 others); Thu, 22 Sep 2022 09:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231790AbiIVN5i (ORCPT ); Thu, 22 Sep 2022 09:57:38 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8944FF1D7F for ; Thu, 22 Sep 2022 06:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663855056; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/F0qe1lhItT1A+QcYyxTHDycUT0wDP1KvrB5Oq141AY=; b=RInpn4A6Qda9ZJ9VJW6/Fd5UhjXEmL0BvWqMmPpls5r9FeNDWNGMmOG05cLUKVnw64tcO4 5EOD99R7rVuaDfVRDrUmET6Cc+952ocdDmHUp8qUnP7pWKHbuMFW9MyiXe0hTM74iKRwAE vYZFKYkvCFFzBhxr7LzDF3v7NK2OXE8= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-571-_nFJB_afO66E1lTcOfKQEQ-1; Thu, 22 Sep 2022 09:57:33 -0400 X-MC-Unique: _nFJB_afO66E1lTcOfKQEQ-1 Received: by mail-ej1-f69.google.com with SMTP id qa33-20020a17090786a100b0077a69976d24so4497544ejc.7 for ; Thu, 22 Sep 2022 06:57:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=/F0qe1lhItT1A+QcYyxTHDycUT0wDP1KvrB5Oq141AY=; b=GAX0oPFjPAfO4fEfnwIPzIOFWl/il+RbbZyJi8ZxsmA/38VnZ47kyGTrl/3otgQzH4 y/to+ybZXS1xJNA2VJAuqI+g0L/1hRCLm0+YnWqKsl7BlNptkFqEW/7KzSyBe3m6EoGQ bNu/OOJ1DFuulaZYi3izHJVD24Stdkufc3ryuNmxCVLyx70BG1JhqsLqs3j0vS6E42F2 cSUL4JCDSJp6NiWQx6zt+btyJmr0gOo8t85tOKFVvEc/7x9+SvdrcIS9c25p2q76vTNQ bTZ7w0k0iFkcpmX4injpzA5GGaak29QjIQGIO+ZuUiVxYJPWZ5VvZdc9wjRkEO/t4vET cRMg== X-Gm-Message-State: ACrzQf3rh3ZnkJUvgVOe4niFt2ZnS1ATLjUOonrWWX/q+wZleQ+RgFbm k+M7OFn1k+mk0o0Zgxaq3IvVNPs09o3i0gpWhWjpw2FQg8HW+7UT56HGrMF9htImgfI33yYCdYd bFbcU2RQ8pHdGKmPbWcaUn8Dx X-Received: by 2002:aa7:cada:0:b0:452:5b04:efd9 with SMTP id l26-20020aa7cada000000b004525b04efd9mr3435386edt.84.1663855052305; Thu, 22 Sep 2022 06:57:32 -0700 (PDT) X-Received: by 2002:aa7:cada:0:b0:452:5b04:efd9 with SMTP id l26-20020aa7cada000000b004525b04efd9mr3435373edt.84.1663855052124; Thu, 22 Sep 2022 06:57:32 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id w1-20020aa7da41000000b0044629b54b00sm3692048eds.46.2022.09.22.06.57.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Sep 2022 06:57:31 -0700 (PDT) Message-ID: <98f0ba5f-d702-c45a-c95b-0ae2320fb769@redhat.com> Date: Thu, 22 Sep 2022 15:57:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH] platform/x86: hp-wmi: Support touchpad on/off Content-Language: en-US To: Daniel Houldsworth , markgross@kernel.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220922115459.6511-1-dhould3@gmail.com> From: Hans de Goede In-Reply-To: <20220922115459.6511-1-dhould3@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Hi, On 9/22/22 13:54, Daniel Houldsworth wrote: > Add scancodes reported by the touchpad on/off button. The actual disabling > and enabling is done in hardware, and this just reports that change to > userspace. > > Signed-off-by: Daniel Houldsworth Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > drivers/platform/x86/hp-wmi.c | 20 +++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) > > diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c > index bc7020e9d..496c137d3 100644 > --- a/drivers/platform/x86/hp-wmi.c > +++ b/drivers/platform/x86/hp-wmi.c > @@ -206,15 +206,17 @@ struct bios_rfkill2_state { > }; > > static const struct key_entry hp_wmi_keymap[] = { > - { KE_KEY, 0x02, { KEY_BRIGHTNESSUP } }, > - { KE_KEY, 0x03, { KEY_BRIGHTNESSDOWN } }, > - { KE_KEY, 0x20e6, { KEY_PROG1 } }, > - { KE_KEY, 0x20e8, { KEY_MEDIA } }, > - { KE_KEY, 0x2142, { KEY_MEDIA } }, > - { KE_KEY, 0x213b, { KEY_INFO } }, > - { KE_KEY, 0x2169, { KEY_ROTATE_DISPLAY } }, > - { KE_KEY, 0x216a, { KEY_SETUP } }, > - { KE_KEY, 0x231b, { KEY_HELP } }, > + { KE_KEY, 0x02, { KEY_BRIGHTNESSUP } }, > + { KE_KEY, 0x03, { KEY_BRIGHTNESSDOWN } }, > + { KE_KEY, 0x20e6, { KEY_PROG1 } }, > + { KE_KEY, 0x20e8, { KEY_MEDIA } }, > + { KE_KEY, 0x2142, { KEY_MEDIA } }, > + { KE_KEY, 0x213b, { KEY_INFO } }, > + { KE_KEY, 0x2169, { KEY_ROTATE_DISPLAY } }, > + { KE_KEY, 0x216a, { KEY_SETUP } }, > + { KE_KEY, 0x21a9, { KEY_TOUCHPAD_OFF } }, > + { KE_KEY, 0x121a9, { KEY_TOUCHPAD_ON } }, > + { KE_KEY, 0x231b, { KEY_HELP } }, > { KE_END, 0 } > }; >