Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2409567rdb; Tue, 3 Oct 2023 23:19:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4BwUxQHYWIT6Clzc1alPqRw7rzoLXKTTUn6LxJurn9zsIjTdKkQtsufg3iq6qDt4REgQ5 X-Received: by 2002:a17:902:b498:b0:1c6:183a:f4ec with SMTP id y24-20020a170902b49800b001c6183af4ecmr1222437plr.17.1696400382145; Tue, 03 Oct 2023 23:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696400382; cv=none; d=google.com; s=arc-20160816; b=ckkLKjDjwLgefyP2G6d23ulqm8zyFo7wfCZv50g23ebod0JryP2fN1DuHjIwJE9wH9 3Pzh4qUqVTOA27mx/CFnaDgXrCJjTEm4pYC2TbE5frwsApRbOCrmR63QJ7CFQxmd3bgF kjMTngi/jE9ubi84R4kkkDZnI7kVaEne9ixietE/EEcMizKHWqw/hDVrKpFXCAEw8KTe 6noeoKsNAbiClxgV9skxE6+BJHdD9j4hhOcpZyf/BTEyRfYyXzv/RQw0V8lt+rrSbuGd YNodxFLuwuKpAQ9QWi0Bk8rclF7kefFfozLY1A02L+S1ZuLCwXB8vMdPmuu4etES/C9r mOww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NitZqTAgnKg1E83Pztq9VrGA+qFNPHv/srNL4ZvnO1Q=; fh=VRSMP6DF0G0MsKjYadB08S3zWAXClPpSvZdi0UUFS9c=; b=xXHFmPkgwnAVBfFR4Ab45fwsszMJwImKWlzG0b4v4Xvo3np4htyHK0XdYFCbWiJ3RM FYy8r+SEEzlzntYkuKNNw73ETUht6D/MoZey9KNbptGq+6C7EV+hs6jXn1jsWKPOJVpN ffb+2rGp8cj1+fnQIuB4L94TAUyO8xxJ5lXuGekJppgx16fepQ6E09tBknF6i8xydFvF JACHlPzAH8Oap6UhuuT8Pc9DkwozsceQq02jwIQOKHeGiHIjV5/BACTW0gL/slNy/4/w IPAhk+rcl7ampVj2k582DCdH8cEyD77hNZRAsqwNDCV6aoETUsY0sMj8bcY0TfR8yEtn bvsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TjItGs2b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id j18-20020a170902da9200b001c0c79b3869si3452590plx.578.2023.10.03.23.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 23:19:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TjItGs2b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 52A4981CC85A; Tue, 3 Oct 2023 23:19:41 -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 S232791AbjJDGTk (ORCPT + 99 others); Wed, 4 Oct 2023 02:19:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232537AbjJDGTi (ORCPT ); Wed, 4 Oct 2023 02:19:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4417A6; Tue, 3 Oct 2023 23:19:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4ACAC433C7; Wed, 4 Oct 2023 06:19:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696400375; bh=CmI8BoWddO62EOPgmJUjKO2JAaho87P2B5wkjnr6E9c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TjItGs2brBGEUSMVlCA4ApDeGNDKiVtfnwMyjE53ZsZEFr8M+dNRnX/I9BDb+Movq 32BOUCvZqwoagIY7wj85crNWV7WpQOygMowOYZC+AmIZd9ULix0WkurMAdDvbOngbc 0oxcZ30ccBm3jFLwxGbH8jBVXWA+YgRYRbCf+jPQ= Date: Wed, 4 Oct 2023 08:19:33 +0200 From: Greg Kroah-Hartman To: Jeffery Miller Cc: Dmitry Torokhov , regressions@lists.linux.dev, benjamin.tissoires@redhat.com, linux@leemhuis.info, Andrew Duggan , Andrew Duggan , loic.poulain@linaro.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: elantech - fix fast_reconnect callback in ps2 mode Message-ID: <2023100418-clapping-driven-bc09@gregkh> References: <20231004005729.3943515-1-jefferymiller@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231004005729.3943515-1-jefferymiller@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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:19:41 -0700 (PDT) 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? Should it also have a cc: stable tag? thanks, greg k-h