Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2310122rdb; Tue, 3 Oct 2023 18:08:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnQNLB1v9TAsN3zQKis8cI1zuRZVGQxQs3GoknYWQTCyUuntFcvPj6valaAy4WLBDtqp1M X-Received: by 2002:a05:6a00:2382:b0:690:d42e:c310 with SMTP id f2-20020a056a00238200b00690d42ec310mr1262818pfc.16.1696381733223; Tue, 03 Oct 2023 18:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696381733; cv=none; d=google.com; s=arc-20160816; b=po2DIsid72HtAhUY7sVR9tO+8tXOWQf+uJlOj0AcjHlsUs9DK/0JE36vJn/ihxdW4J t0kinVwqYJKeEdZvgCutBmQcbub3YLcvy24OGQjCMLXxU7oWv7K0XUC7RnIwKo3OHPiY sfcBPMPrOX+LwzjsyvqjkeFIyBjikXxheCklte5pOA9OHKHdfHN15pq1bSK0njgfcTsg 3Xh5uB2e72iyWs/Zf5CpMFi4rlSqovPvSLTSSOxwA+sEMIsE7vtTGc/18aX379XX8fRl B8M6biRoAWZYJazqiwlS2vES5d4veRRERfi5grwatJRCyx0jNLv2kt7SdCWxATV+jWLB cD7g== 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=4vxM4zNVFuUMx5H9x8OKQLI8DNjHa1TcGf47a6wRUPc=; fh=emvd9wBvX308ASHdTPG5Xnrh3oHzgKXXLVQSmqhGMDg=; b=au04cEX168z4F+2eQki+VS6NbseZTq6yDG/moRLHfgcmA0ecGSTjiD70djCoodvR7J 2YhMmwRB5ZavNjMoukq20Yod/ityRqhcbFEwaHL//6w/FZZlHjnvg6+2KQzZfZwOcRuV wU4L9AD+n16ZFwZLpbuQ1G8O1WltZStmsM24EpqUV4foMwgZSwYjfkGMcza+JFclHTlv df63H/uS4jrz1c9XvtzD4IZ6824IvwW77j3nkBywz+nOh6fE6nks0WcfUrpLrjk32SE0 d/S/XZm8tZr/ghd+uHKlhV8peZOnIE7JQbdaUCrd1GLw/FD6cBn7R2r6Ge4rBZnfkwng prrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=KIdclyHo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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. [23.128.96.34]) by mx.google.com with ESMTPS id k10-20020aa788ca000000b00690f886b1bcsi2819660pff.392.2023.10.03.18.08.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 18:08:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=KIdclyHo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 4B3BC8318C6C; Tue, 3 Oct 2023 18:08:52 -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 S232262AbjJDBIu (ORCPT + 99 others); Tue, 3 Oct 2023 21:08:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232430AbjJDBIu (ORCPT ); Tue, 3 Oct 2023 21:08:50 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC398AF for ; Tue, 3 Oct 2023 18:08:45 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-537f07dfe8eso3554a12.1 for ; Tue, 03 Oct 2023 18:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696381724; x=1696986524; 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=4vxM4zNVFuUMx5H9x8OKQLI8DNjHa1TcGf47a6wRUPc=; b=KIdclyHoEzmJklFaDJN6ZoZSUZj3CFGeEKoiI2ETrEnikSBUc9hC3ODwehaskiFsZs RoutitI9TP/W4DuaZAHyF3dfd3ymjk3XTe/TVHVur8pGpd2HGiPaJHEw0DcO3K1Bpiev Ojidu1dW64GoMd4P4watTW8JjJeuB2JwsrvPyj9151Qb9UrppgrfNotnYOlB2050JvjK aO575CsyrhOXhc9q/CyOGiqac64IS2nUO/LRy+GD4osP9/ImISd3gMhBaBlPI//TbiYn VSQwu490tB9drluMeUji5XW3W7yLxdlfZOoLvsqrIXNfTBnCkMAIc5YagRvE9KgrNFxz Z49g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696381724; x=1696986524; 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=4vxM4zNVFuUMx5H9x8OKQLI8DNjHa1TcGf47a6wRUPc=; b=PrH+utWQA3jBtNR4BjhPX2DNvGUOBX/JaM2xlaM78ciR7M77RFIVwcMY5AO4BJh87k Gia8Q5Q340WFr4gZJzSSRYZATslgkpL5zw+4s3e7pc58P8V2wYjE0+fH9Wa8esS/pHtB kP71SZRSCwCwYcAWq7D/BhxGcTugsgjKwQzyt5IuLT6wMUJSpiE6UT5dHr/KYTy7FsAh JffQZ7v0o8d4PidxZ3M2a2HAu+PZyNZkjO2624JMlIeKq79A9yJlWkPVSCZ9OhH5kPql NOQE7Y1LG+LUKfYGbS/ntRL5TuJF5Jd7ZPGROFWkWl1guxVYnCdl/ChZq+GiG7BmT9BU isOA== X-Gm-Message-State: AOJu0YzjlQJjUTuLn6RZai7wqLtXJGI2HMzVvo++MIAE1bhL0AajrvmM ZyTNNSijsgx4hQFDgXGTrrx+4NZjFcusQ6/rey7ZpHbRx+5RLj6TJNMITVcV X-Received: by 2002:a50:d083:0:b0:522:4741:d992 with SMTP id v3-20020a50d083000000b005224741d992mr64635edd.4.1696381724108; Tue, 03 Oct 2023 18:08:44 -0700 (PDT) MIME-Version: 1.0 References: <1b3f8dd2-6364-4f00-a33e-8b15b8911dbf@leemhuis.info> <906cfb11-ee93-4251-a6ff-1c4d9656b577@leemhuis.info> In-Reply-To: <906cfb11-ee93-4251-a6ff-1c4d9656b577@leemhuis.info> From: Jeffery Miller Date: Tue, 3 Oct 2023 20:08:32 -0500 Message-ID: Subject: Re: [regression] Resume broken on T14s Gen1 (AMD) due to "Input: psmouse - add delay when deactivating for SMBus mode" To: Thorsten Leemhuis Cc: Andrew Duggan , Dmitry Torokhov , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Linux kernel regressions list 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_BLOCKED,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]); Tue, 03 Oct 2023 18:08:52 -0700 (PDT) On Tue, Oct 3, 2023 at 2:30=E2=80=AFAM Thorsten Leemhuis wrote: > > This didn't print anything on resume, so `psmouse->private` apparently > is set. > Thank you for reporting this and providing the information! need_deactivate is never being set on the smbdev struct since it's elantouc= h. On this machine SMBus is not used so it falls back to PS/2 mode. When this occurs the psmouse->private pointer is being replaced but psmouse_smbus_reconnect is still being called on resume expecting smbdev. That explains why when it is setup needs_deactivate is false, but on resume= it has somehow changed to true. I've submitted a fix for this at https://lore.kernel.org/all/20231004005729.3943515-1-jefferymiller@google.c= om/ and it should resolve this issue for you. Thanks, Jeff