Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2414796rdb; Tue, 3 Oct 2023 23:35:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFawZQGDilvNh/gSmJcSoSrJfki5DY3GvVpwSbV2H33k8o7gO6d5yPre/B5N22CmxDjwJsz X-Received: by 2002:a17:90b:1b4c:b0:267:fc61:5a37 with SMTP id nv12-20020a17090b1b4c00b00267fc615a37mr1325318pjb.39.1696401313090; Tue, 03 Oct 2023 23:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696401313; cv=none; d=google.com; s=arc-20160816; b=DDJM6SfmRpvOZWYlRt7sMre/DnVtWc7MtBXTFLPWHf9p5CVAVVGd9WhHai9RXLPcJp NpcAnS6E0MVFIWzNgzEqnzsyhuTN1Q6tqY/+xh/dXlM7vST3SyvFi47jx0Al/DcOxF9W w0cLyvTe2WDk9D0RlT5roLOyNGlJ24lao7RniE7OBi7GbTEBt3XuTYgOc7vx3q8rWShk po/ylrSZNxH3upHzNtNF772XWdtx8vPTMhH2Agfs0wpv8CVAvGBa1zDpz95YuRHA3WSQ qTWcILqm3xGAT088h3mIQOVuZphuhCxgGSR0asW5DUszRxx6mZIR7bqX50oPk+mZrLuK h1GA== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=iuIbZ09tbnzm7NRXvlX6fru6/3RYmYkxiE0YQNWIQDg=; fh=DTRUaCb/lGgbwXEbb9STO3zuFWOp9lsV4T9BBcgolso=; b=eFTaPxz2luzB5gZxR4+tEUKPVRUD1G54xAgoefA4k889PS1OcH3hpzq8tcr020zoJc iYQRuv5NzGSZcrNw4TI610EOK9zIWNVdhKJuaMQ3fNbHDzHNTOSkihknjZ57z1fk6C2n z80lGPmiijylOHGTSfcBe44qM7vFqBF2CI5XikjnLvlj1V/OZ6rupVWSZ7o+kiAmBcDj WwP90qXx+vuPURgxqj9W4GRDrGVjIA6P7+8LWau6q7YvWw0T1C6enxDw5hhP1jZh82g/ /7LzBI4SVnP9Tf8aBrrZMFqrKv79pyrDeKUovjyidUJj/9DTamY+5kpaD5I1IaZaPKAJ w65g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id pj4-20020a17090b4f4400b00273f1cd73b2si959554pjb.75.2023.10.03.23.35.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 23:35:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 268AC81CC85E; Tue, 3 Oct 2023 23:35:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241364AbjJDGfK (ORCPT + 99 others); Wed, 4 Oct 2023 02:35:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231894AbjJDGfJ (ORCPT ); Wed, 4 Oct 2023 02:35:09 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB7FFA6; Tue, 3 Oct 2023 23:35:05 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1qnvTG-000313-TH; Wed, 04 Oct 2023 08:34:58 +0200 Message-ID: Date: Wed, 4 Oct 2023 08:34:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Input: elantech - fix fast_reconnect callback in ps2 mode Content-Language: en-US, de-DE To: Greg Kroah-Hartman , Jeffery Miller Cc: Dmitry Torokhov , regressions@lists.linux.dev, benjamin.tissoires@redhat.com, Andrew Duggan , Andrew Duggan , loic.poulain@linaro.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231004005729.3943515-1-jefferymiller@google.com> <2023100418-clapping-driven-bc09@gregkh> From: Thorsten Leemhuis Autocrypt: addr=linux@leemhuis.info; keydata= xsFNBFJ4AQ0BEADCz16x4kl/YGBegAsYXJMjFRi3QOr2YMmcNuu1fdsi3XnM+xMRaukWby47 JcsZYLDKRHTQ/Lalw9L1HI3NRwK+9ayjg31wFdekgsuPbu4x5RGDIfyNpd378Upa8SUmvHik apCnzsxPTEE4Z2KUxBIwTvg+snEjgZ03EIQEi5cKmnlaUynNqv3xaGstx5jMCEnR2X54rH8j QPvo2l5/79Po58f6DhxV2RrOrOjQIQcPZ6kUqwLi6EQOi92NS9Uy6jbZcrMqPIRqJZ/tTKIR OLWsEjNrc3PMcve+NmORiEgLFclN8kHbPl1tLo4M5jN9xmsa0OZv3M0katqW8kC1hzR7mhz+ Rv4MgnbkPDDO086HjQBlS6Zzo49fQB2JErs5nZ0mwkqlETu6emhxneAMcc67+ZtTeUj54K2y Iu8kk6ghaUAfgMqkdIzeSfhO8eURMhvwzSpsqhUs7pIj4u0TPN8OFAvxE/3adoUwMaB+/plk sNe9RsHHPV+7LGADZ6OzOWWftk34QLTVTcz02bGyxLNIkhY+vIJpZWX9UrfGdH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jenJu+pR9A 7EElGPPmYdO1WQbBrmuOrFuO6wQrbo0TbUiaxYWyoM9cA7v7eFyaxgwXBSWKbo/bcAAViqLW ysaCIZqWxrlhHWWmJMvowVMkB92uPVkxs5IMhSxHS4c2PfZ6D5kvrs3URvIc6zyOrgIaHNzR 8AF4PXWPAuZu1oaG/XKwzMqN/Y/AoxWrCFZNHE27E1RrMhDgmyzIzWQTffJsVPDMQqDfLBhV ic3b8Yec+Kn+ExIF5IuLfHkUgIUs83kDGGbV+wM8NtlGmCXmatyavUwNCXMsuI24HPl7gV2h n7RI In-Reply-To: <2023100418-clapping-driven-bc09@gregkh> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1696401306;bf33fed2; X-HE-SMSGID: 1qnvTG-000313-TH X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 23:35:12 -0700 (PDT) On 04.10.23 08:19, Greg Kroah-Hartman wrote: > On Tue, Oct 03, 2023 at 07:57:24PM -0500, Jeffery Miller wrote: >> Make `elantech_setup_ps2` set a compatible fast_reconnect pointer >> when its ps2 mode is used. >> >> When an SMBus connection is attempted and fails `psmouse_smbus_init` >> sets fast_reconnect to `psmouse_smbus_reconnect`. >> `psmouse_smbus_reconnect` expects `psmouse->private` to be >> `struct psmouse_smbus_dev` but `elantech_setup_ps2` replaces >> it with its private data. This was causing an issue on resume >> since psmouse_smbus_reconnect was being called while in ps2, not SMBus >> mode. >> >> This was uncovered by commit 92e24e0e57f7 ("Input: psmouse - add delay when >> deactivating for SMBus mode") >> >> Closes: >> Link:https://lore.kernel.org/all/ca0109fa-c64b-43c1-a651-75b294d750a1@leemhuis.info/ >> Reported-by: Thorsten Leemhuis >> >> Signed-off-by: Jeffery Miller >> --- >> >> The other callbacks set in psmouse_smbus_init are already replaced. >> Should fast_reconnect be set to `elantech_reconnect` instead? > > What commit id does this fix? Good point, yes, it also needs this: Fixes: 92e24e0e57f72e ("Input: psmouse - add delay when deactivating for SMBus mode") > Should it also have a cc: stable tag? Not that I can see, as that commit was merged for 6.6 and not backported (no idea why Jeffery CCed the stable list, maybe I'm missing something) Ciao, Thorsten