Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2942422rdb; Wed, 4 Oct 2023 17:13:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9STpvOwzWjmyW+Te85gmeC5UGgKB6Zw0mQqPDer0mk5AUb/Vz3txuWlRbTttHiy+pk7ML X-Received: by 2002:a17:902:ec83:b0:1c7:25fd:661f with SMTP id x3-20020a170902ec8300b001c725fd661fmr4435711plg.42.1696464826948; Wed, 04 Oct 2023 17:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696464826; cv=none; d=google.com; s=arc-20160816; b=XTGhyVgOmP6EwPQ+wuFIjtZzFSynHVWvnf26LymVpNpj2Xr44G2LeCXjhOqE2xphGg BbpH2EzDfXyYH5D4TqP+fj6LIOKr/Glkv+mYtFBy7COthlIorPJ7ZfIRndUCcXKyCDOs 9gOkQ0uWPDFnlpITgSiFkiSX1q98wxHysXEgnODdWhj9MirEAZt/N8IzfVR3o37hJyju PX2bdn1GN0dYOff6heepHFn3crVU/cNdaq0PlrtTY00TvOd0OEqTlPtd4tb2XCjQa3+M N6MIMGCL18Ve7x8Z13AAaCG5KJgG+boblJB6HyRRK0ntGLYevwCYcyFOO/wdZOuimSHa zaZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vRF+vIlJA3ZehEMRKa/evOkO3sf/u/GsKZC4fdcnalA=; fh=iVleKDmFwfoHJcI/zboQFtu2Z8P4Z5g2VslnDqQ1qk8=; b=FPZk6qzprc/MnwEsLr+LUpJD6KBzTlKHlHq4lPC2H3EkA7SE5TlsIy1BI6nbEgafEa xvAZ3M6i+M6/xRAAH17QiIqLUgn3Ux4CayOcm96mKfVP5EtT4DelUc2iqkbUT9DfTpZc RVAwqWgLud2Dxj+k0IniHU1HtJjTpiBZ1MACEm+im//Y7ncCfcWltg1hSq0ib0exflL/ eFt1JTAuvPKErOBKU0oDMkZV7Dn2zmq2mqRsMERHue4nV2jDo0Vgv+qUYeCn53QvNdhX M0LHsKOzUfpV15Uw7hBzTR40SMZkZVraPz7Jt+J85Z1Vq4/Wvyo6o8+7wWAeOXUIJu6I wyig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="ZmI/mrHV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id l5-20020a170903120500b001b9be3b94dfsi313563plh.268.2023.10.04.17.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 17:13:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="ZmI/mrHV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0C2998535F11; Wed, 4 Oct 2023 17:13:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244210AbjJEANm (ORCPT + 99 others); Wed, 4 Oct 2023 20:13:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244205AbjJEANm (ORCPT ); Wed, 4 Oct 2023 20:13:42 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51F47E8 for ; Wed, 4 Oct 2023 17:13:38 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50302e8fca8so2487e87.0 for ; Wed, 04 Oct 2023 17:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696464816; x=1697069616; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vRF+vIlJA3ZehEMRKa/evOkO3sf/u/GsKZC4fdcnalA=; b=ZmI/mrHVP85i4YI8gJizJqD2zA296qfmmnX5RqwO71rE6I1rGR+W+NZE7tn2WFxCQq /G/NkgTQ7VDt+msZOSEdZZ2ykmWzlFA3/9yv/mK41ixVRjx4C1QGxgSC01hAriA22XM8 AdW2t8wyUDy4IdAoNcO1EPxWC/0KaBj+nj2DwOHDtpFwz9nj7UFQLHz736Tf/IPtqKTy Dc6TbqElB3FY9ZNpNd4UaqC4nS/TdEpcOLQezLUxuoD3NhOjjG9VsPO4SHcaoDiXuvSJ p+f2MEupoqQ5HbwGoD48kquCu4ZfkA5Ljn6cOl1N6EuSNYcQe/dDusrrN8+WNz25QlVy fIfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696464816; x=1697069616; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vRF+vIlJA3ZehEMRKa/evOkO3sf/u/GsKZC4fdcnalA=; b=B+jHXPu8FzOgIr3PLY4E3iOPt6J8sfqpUqHZejXRooJbPu61G/IR8Pn696FHJzvE4E 8K050abJE/UeSDHN18ubnMonITAQR5pLeozUz9xDByF8QJJgwVPvi01mRggEVMIyHcBU jndL+WH5I+yivU4L3mN+1Qu+1v8W0PjxDtnXaRfdDCTJTWVpAfnUsER9KHLKy0LdQgXn ruMBk3aqgdrXyC6q3SFhuPcHkB2JRzWe7HneJCcUw31+suUGb9lqTfUV8prnglY8V0Dc wc/CtlGhb2X8cxyHgT6ruzl3ErCET2OfV1IdrT3EDOeEp1rVhkkHPLo4GANdE5hee6zX VJ3w== X-Gm-Message-State: AOJu0Yxe+3UD6LyTUajZ1Lzp9Ga1xFJX34Lr0/UvygftB+yDJUAoNS/N 8BrKO7xT/DcDt8br2jAJoTFvnZ+TVCbIwb1XHWBDTQ== X-Received: by 2002:ac2:5d67:0:b0:502:932e:2e36 with SMTP id h7-20020ac25d67000000b00502932e2e36mr31850lft.2.1696464816245; Wed, 04 Oct 2023 17:13:36 -0700 (PDT) MIME-Version: 1.0 References: <20231004005729.3943515-1-jefferymiller@google.com> In-Reply-To: From: Jeffery Miller Date: Wed, 4 Oct 2023 19:13:24 -0500 Message-ID: Subject: Re: [PATCH] Input: elantech - fix fast_reconnect callback in ps2 mode To: Dmitry Torokhov Cc: regressions@lists.linux.dev, benjamin.tissoires@redhat.com, linux@leemhuis.info, Andrew Duggan , Andrew Duggan , loic.poulain@linaro.org, Greg Kroah-Hartman , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 17:13:46 -0700 (PDT) Dmitry, On Wed, Oct 4, 2023 at 9:11=E2=80=AFAM Dmitry Torokhov wrote: > > In fact, now that I think about it more, we should rework the original > patch that added the delay, so that we do not wait these 30 msec in the > "fast" reconnect handler. It turns out your original approach was > better, but we should not be using retries, but rather the existing > reset_delay_ms already defined in rmi platform data. I would appreciate > if you try the draft patch at the end of this email (to be applied after > reverting your original one adding the delay in psmouse-smbus.c). I tested the draft patch and it works. I did revert the previous delay patch while testing it. > > I think we need a similar change in synaptics.c as that one also can > fall back to PS/2 mode. > Ah, good point, yes it does appear this needs to be done as well. I have tested and will post an new version of the patch to include the fix in synaptics.c as well. Thanks, Jeff