Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1518610lqz; Mon, 1 Apr 2024 08:36:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWA5wHekl/trt+DUX+6/CoqQVRrcz7cVDOhPRk3sIwqGPogQHfUV9fSZvHJSMJqeWN+58FARI+qOlC6SFa9nHmNH4sjLwZOUevj3LnXBA== X-Google-Smtp-Source: AGHT+IGAGjns1NNhst0KFo1LsCvtrxXC+mjUFAv6+2f3WElHzJTnZdfpttqTXOKW/QffbeXgBseJ X-Received: by 2002:a05:620a:2791:b0:78b:e6b1:b770 with SMTP id g17-20020a05620a279100b0078be6b1b770mr2343477qkp.41.1711985819134; Mon, 01 Apr 2024 08:36:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711985819; cv=pass; d=google.com; s=arc-20160816; b=Uh+NlDsjnzOZfE3JQ/ilgnGNTvMSIy8ZuT0NkZ1Kn901dMWDGBgENaTjLcEAFj0UNS uLAcTTNorFgF65SDzi6iOrCLTkrcfOkTZi/KjWVYevBDhE5ICR+nA7I0hV7QgMu5owHP /UJ22/BV+E5IiwGqci5ldH5SM4puRr9vryxWjRGmGiuDwAJXAN3aLfJ5OH1dH26QcLAb 6/+znwjyaNGUMh+XBAhiHPr6IpfUx6JYu7vHwwvhiz8sYaZkzvYj2vDm+ATSbMHvV+5M ARstUKIJVmhBeGsRyJt68pqLgYHVvsEdW7V6EmNIdYtBE0SRWZdb7/GSj27nkE1CvwJi hqOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id; bh=lqg2ZtClaNoM5Bl9qZFaTD0p8EgPIW3Hdjo3dY+tH/4=; fh=iHLthdiNnhXmVgmLxSMjnMNHXeW3JaTLGFb5iDGxQbU=; b=MYRnnb91T/lknrKoag1S2BIPhDgzw3WL516saGXuZhwQw6ylgDD6xzywuIepL8FRgc OrrOWPHcNZn5YonTepcMkjO4hmMlW8EBOfbA3LTNtw8zBgOd47kZ+vmDGWVn0NcRCtOf ZQbIq5OpAv1bD0wrKUw5lS4fyc6WBIjFPCj8Uf6B5yAkHKDg5AAK6aWvj3n6K6rV6aWi 3VL6VPg+IGYQXXaxoCKCjK54m1dUu5kgGAATrRp+X85bHwKjxYfO+j1XOiUwO2q2K9Mx ye1My2p7S1SpByQ+KNaXJjptCpNvidV/FULjSiAcfkdMOAqWplqKYFWKgUQc3IpNJ7DS nDDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=inka.de); spf=pass (google.com: domain of linux-kernel+bounces-126804-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126804-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t27-20020a05620a0b1b00b0078be1bcb71fsi2844380qkg.505.2024.04.01.08.36.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 08:36:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126804-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=inka.de); spf=pass (google.com: domain of linux-kernel+bounces-126804-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126804-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C90891C21A42 for ; Mon, 1 Apr 2024 15:36:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B17147768; Mon, 1 Apr 2024 15:36:51 +0000 (UTC) Received: from mail.inka.de (quechua.inka.de [193.197.184.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C6324501C; Mon, 1 Apr 2024 15:36:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.197.184.2 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711985810; cv=none; b=gRBoHAMRSppPND7vtpbIaneEUhLK51dposn1KRJ4MLMNhHBth3KGPLrpb7HrqiuZuBWMKKBM+AP5YaMn6ITRyafVJN1E+uTShjOXCTVhxB5MRLEjtOL/8qNBEERU4/i0KDt22JthRab30skQQcpu2WiW+un4dHAHfOnkOUw8M7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711985810; c=relaxed/simple; bh=4IkYm12Xm40qZ4Fx7s8GjYsSBQxNdQAXgH2rzdNq4sw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=sq9OXk9HhAdw0/CvxN2/My5zO5MYx5opPuTt/L5NeduUVcYxhVPxra24P25/wJHKre0+lweM/fULtkECUHcXu5wpHak8/tu8kDXdmnWbTNv+srf9U8tVzQodX/tKjvQ8ieMEz+LAe/tRaX2YaQefYwvxYySTPXJSKqzt20Bi3QE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inka.de; spf=pass smtp.mailfrom=inka.de; arc=none smtp.client-ip=193.197.184.2 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inka.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inka.de Received: from mail.berkhan-weisser.de ([2a03:4000:54:b9a::4]) by mail.inka.de with esmtpsa id 1rrJiE-00ArAD-30; Mon, 01 Apr 2024 17:36:42 +0200 Received: from 127.0.0.1 (helo=localhost.localdomain) by mail.berkhan-weisser.de with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1rrJiD-003wxe-30; Mon, 01 Apr 2024 17:36:41 +0200 Message-ID: <85837371eadac58dec812c0be14264152ee1e5fd.camel@inka.de> Subject: Re: [PATCH 1/1] platform/x86/intel/hid: Don't wake on 5-button releases From: Enrik Berkhan To: Linux regressions mailing list , David McFarland , Chris Feng Cc: "Rafael J . Wysocki" , Alex Hung , Hans de Goede , Ilpo =?ISO-8859-1?Q?J=E4rvinen?= , "platform-driver-x86@vger.kernel.org" , LKML , linux-pm@vger.kernel.org Date: Mon, 01 Apr 2024 17:36:35 +0200 In-Reply-To: <1198933e-bf89-4237-a6e8-f7daeeebf885@leemhuis.info> References: <20240318191153.6978-1-corngood@gmail.com> <20240318191153.6978-2-corngood@gmail.com> <1198933e-bf89-4237-a6e8-f7daeeebf885@leemhuis.info> Autocrypt: addr=Enrik.Berkhan@inka.de; prefer-encrypt=mutual; keydata=mQGNBF0BQWwBDACqVwNmsHX65pIZKLiW2zjQZDvALp9Xf09KwJyp1969Hxa4UqP4l+ORS Z9uKGYJuxJj1T7OiZ3WoXYKUrcLtrnotOrcBwmCgCtPQupfaXFUg1CnCuLsr3gclSG5Lt4V+/fkVd yraOCL5RN1RjH78jrMq49v7zE0BAzCY4sn2ZmXjU0hTwBYeg4qQiWQActUhYB26Yj2SXeETWAnWD4 hGVKPBwVJ2scLIFdqAmvAwGJdOwc9jdM5y2Ydk61DMS/m2jMUdACsXb/DlyP5hQIzeepy7asWrt1K 2WDX1HVhJwzK3dmVWVJsf/cL4b866Ant7GOHY439FITcvZMYt2m963Ug8/W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9eThxcOp 7lpMNupFGXgYVpgfUC8Ik541bBLkHuuHKRTNepjjqDAc9JsztcWHsAQacrXoY+pNY7r0yE37BC+nq 9QR1PCtO3Zazqdr/bvnXg1F/UYSKrQ41dY+xDoAxGV63F8W3zkLNL/7JSixbhPb7JDMcNQA/cwZrg VwSoTtuTeneKH/8QVsDBjJC7ICquMZs2hhHYOo/OrGhdD69tnXOgTKwK+CbdmM4nhR/Zmoka9NuTc rsLS8WfK/rhQtoI9OHT6gE2pRjaxiStwDNChdHbkrAXjn3ABEBAAGJAbYEGAEKACAWIQRsvJAEwjS oBaIXqXfUCOpKRss8pAUCXQFBbAIbDAAKCRDUCOpKRss8pEBUC/9NuPJXKf1+8o5GjyDDGz0lQ+xl NX7q48ZE94gkKgY9w8rbb2m+F2cNUKvMtEEW9L1zBf3F78BVbrSUWIB/HIun5XU8jYiLzMO7aXR63 GtVPcXimXs9sbcaGR09FJW/7EFVwJ/ivedEazXdJxip4BENomhxY+mB36BrxhPOiDr/FB+dr1wOXU ZKxiQrjq1sfbLCeInO3X9ce5KA4mGHXJQFz38oYK/hUR2Jn21elB94PwjJTiBemqFRWIVy8CPyAU4 CBSFIwyok5977LPf5/osyQFqjkRqi2OugSDe+WenhciKL0Y6fqJFVxMNAZ9PXBA+mODvpvVPV9bvm Up6klmUMO/pK5X2F94QLIJ7XmroN3Q31ipWu+S3+/c5QYH2RrlHafw0rtX+JPEhnV0S6d2RaKdkqF 3uzEF6yzgF9ymozFdXEAzzpVkJop48x0MbSLV9XHfbkj4IUdAbvSRzJ2lAAU2JBV15Wt29O5qfyP5 Dh1pYX8125Sys26JeDfnh3bnI= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Fri, 2024-03-29 at 14:51 +0100, Linux regression tracking (Thorsten Leemhuis) wrote: > [CCing Chris, who authored the culprit; also CCing the platform folks > and a few lists] (Intentionally replying to the "wrong" e-mail to get the enlarged recipient list for free ...) >=20 > Regarding the patch itself: hopefully this mail will get things > moving. >=20 > [1] > https://lore.kernel.org/linux-pm/20240318191153.6978-1-corngood@gmail.com= / >=20 > Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' > hat) > -- > Everything you wanna know about Linux kernel regression tracking: > https://linux-regtracking.leemhuis.info/about/#tldr > If I did something stupid, please tell me, as explained on that page. >=20 > #regzbot poke >=20 > > Signed-off-by: David McFarland Tested-by: Enrik Berkhan > > > --- > > =C2=A0drivers/platform/x86/intel/hid.c | 8 +++++++- > > =C2=A01 file changed, 7 insertions(+), 1 deletion(-) > >=20 > > diff --git a/drivers/platform/x86/intel/hid.c > > b/drivers/platform/x86/intel/hid.c > > index 7457ca2b27a6..707de9895965 100644 > > --- a/drivers/platform/x86/intel/hid.c > > +++ b/drivers/platform/x86/intel/hid.c > > @@ -504,6 +504,7 @@ static void notify_handler(acpi_handle handle, > > u32 event, void *context) > > =C2=A0 struct platform_device *device =3D context; > > =C2=A0 struct intel_hid_priv *priv =3D dev_get_drvdata(&device- > > >dev); > > =C2=A0 unsigned long long ev_index; > > + struct key_entry *ke; > > =C2=A0 int err; > > =C2=A0 > > =C2=A0 /* > > @@ -545,11 +546,16 @@ static void notify_handler(acpi_handle > > handle, u32 event, void *context) > > =C2=A0 if (event =3D=3D 0xc0 || !priv->array) > > =C2=A0 return; > > =C2=A0 > > - if (!sparse_keymap_entry_from_scancode(priv- > > >array, event)) { > > + ke =3D sparse_keymap_entry_from_scancode(priv- > > >array, event); > > + > > + if (!ke) { > > =C2=A0 dev_info(&device->dev, "unknown event > > 0x%x\n", event); > > =C2=A0 return; > > =C2=A0 } > > =C2=A0 > > + if (ke->type =3D=3D KE_IGNORE) > > + return; > > + > > =C2=A0wakeup: > > =C2=A0 pm_wakeup_hard_event(&device->dev); > > =C2=A0 -----BEGIN PGP SIGNATURE----- iQGzBAEBCAAdFiEEbLyQBMI0qAWiF6l31AjqSkbLPKQFAmYK1IQACgkQ1AjqSkbL PKSUXwv/YWiU334Osus+niffw9gN94vCQid6OWuTIbX2zMNIunHmpHouMtfo6dpb 7Qsyaz0sxaUEclRPLf/bSAV8zWromM/4Xoa/DoBq+GPOLle5wTJAlislhZVfDZFX FZ0EfUg+MvThqlJD8yhGNJWGVnSn92hDid7yy5Y/BSWTPCNhRxEsqy+d0pN82EnD 0mqWnpfG28uqK6dtOLnvbiOuWQhgKYerKFYHXw8FLxZV0eKb3+RqBFf6ZdsAjUEC +d7G9Oq4pc9jxZNvOMop+z3Eskd/bD8Wi2aDtR1qcRENMaK0ucevTuOjGL8Gh80c SbgKu2eU/qVlbnVrcaPgpB0CXXza7SYUynw5XWB8jBWOj6w2nxpnQPm5a0Z5aNYw /kLuabhSommEmUIJtoOA2vgO8D0ACfF2n95cNXaJRiOhuag3SRoair50TOzmf09Z 4uco5iaWeIQwEpVFGdy+qh0V18kYclnNMZHC9bhO6heBDLB9Wy/iXDxko9tMXm/v XnfAKKw9 =3DudJV -----END PGP SIGNATURE-----