Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1614456rwl; Wed, 12 Apr 2023 16:07:20 -0700 (PDT) X-Google-Smtp-Source: AKy350bksCjtzHRS7Wd5Ag8bOrEiIHpuDDTp79mEnY1ahtWyh4e4WBdibRWGRqClw4AASIlgxdCt X-Received: by 2002:a17:906:3794:b0:94a:732c:b52a with SMTP id n20-20020a170906379400b0094a732cb52amr485063ejc.46.1681340840615; Wed, 12 Apr 2023 16:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681340840; cv=none; d=google.com; s=arc-20160816; b=tPXsdqw0UMljv2ZVPpmxEbCY82Fk77LOWIvZ+LeaPv2EeWcRx+TiGVP9P8Z8s3ioLr DWEEqYM9PuCDm7ObSxRiyQDzJ5n5EF98C+SGLURLVtwJTJhTfhyDzj1WjUTR7jdDHlTH lI4YQLmmf2+In5seBGz/narSCUZHLqCef4jRrWMVsxCrj2pHkg/5qOGfdMOzeBj+RAHY qOo4jwpAw0XYVumnBayqiiT9kWx518Qy+6iIjpAp6GxlQYKablObz9TXD4iDs4mkB8Dk oRXMjlr08zn7p9IF30Yb5+U0hjRUII1h/LEVkts5Muy+TMOSn6jOP9c1e1BijP0s02Np OjJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=g30FzRjm0pF3p9bY5Bw+umnxGOwPcNFqorzfNbhlVWk=; b=mDtLmIVX0Ki/ekjAzZGF4loRZjUHVRhkVV/kuH+DYMxhn7X1WuUFLKaTZf0uKLDvgq Zqy89QicXA92TRIcK6xl/jIA/wq1uE9bfkGBgDh8eOtmqYQkrwOCZ7Mso/dB75dbizmP xbM9Pi+Ye8/Fdnr1D4QP94geX9rbGW2xXayo08+VWbA3g/Lv0YtyS3iffL4KrE95s1JW vgP5Z8rFL3UNRjicYT2ql25ZynA680hSxZlo1jvCmBETv3fN1N9j8iH05FlGKAOfy19S qJNeVZj+0ARDFxzlbr8TVfR6zR+m2BPvyusDntILgPTNz33TVW1u/YLdORzkr5txkgcH yVmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MAP7X+b3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020aa7d88e000000b005066af6d5cdsi113888edq.297.2023.04.12.16.06.56; Wed, 12 Apr 2023 16:07:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MAP7X+b3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229609AbjDLWyj (ORCPT + 99 others); Wed, 12 Apr 2023 18:54:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjDLWyi (ORCPT ); Wed, 12 Apr 2023 18:54:38 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB933E4B for ; Wed, 12 Apr 2023 15:54:37 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id 39-20020a9d04aa000000b006a1370e214aso4572743otm.11 for ; Wed, 12 Apr 2023 15:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1681340076; x=1683932076; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=g30FzRjm0pF3p9bY5Bw+umnxGOwPcNFqorzfNbhlVWk=; b=MAP7X+b31KcL1I1fSZ6diweALCMeHkbX41kQiCjnIBXzPUydIQomRhwK3NxVTdlyPk ulWRBdnmoW2lFVUGn3lhHHDYW+aU3JKOj4KA/NYw5Q0g8ZPKTvZZrOLH/K2ozEtoLT3y Lx6zL8o0mePBqIjjmGnUj9Y+4pZJO3X5nKk+Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681340076; x=1683932076; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=g30FzRjm0pF3p9bY5Bw+umnxGOwPcNFqorzfNbhlVWk=; b=SyxhgLfuX5aItmKpMP0pMKnZZ38qZcqGh3hhXr/HsPvQsazRr9QpCj1hqAHhuf5E+q h8uVns8E1bmVMuS1Byb/FcgCA78bLp9OMDqt/qpjX6hEGkLmswxdtdctYIe3VOnyBN02 1o1ZRum8DwZNdcWNub6z6PYPbYVlnqFIiidPQUCZ2UlncUorgKZmHBCNmvwyNKrRiKQZ cc5fySyimVKmq5dCEflm+gd3hYoNaXiG/boq9dvg8KK03w0ZSNwIjBM5GK+O25F4aBz4 6SV6Byjm9I64jinrah5dpjhWPwdqAc5Ww2z4ZekODAbPr0dmTsfRSvSUlZcj8fjmm16p Rzxg== X-Gm-Message-State: AAQBX9e/4uYydFkojlkmLU0ipd0kQe0oHQHgzPwziGGlpPDDoeXXWri0 alaoJHQsjTqi3erER12W08WnQFaUHrhWV/XshQU= X-Received: by 2002:a05:6830:130d:b0:6a1:20b9:34b6 with SMTP id p13-20020a056830130d00b006a120b934b6mr37437otq.0.1681340076606; Wed, 12 Apr 2023 15:54:36 -0700 (PDT) Received: from jdenose34.roam.corp.google.com (99-137-158-190.lightspeed.cicril.sbcglobal.net. [99.137.158.190]) by smtp.gmail.com with ESMTPSA id g7-20020a9d6207000000b006a3170fe3efsm138681otj.27.2023.04.12.15.54.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 15:54:36 -0700 (PDT) From: Jonathan Denose X-Google-Original-From: Jonathan Denose To: LKML Cc: Dmitry Torokhov , Wolfram Sang , linux-input@vger.kernel.org, Jonathan Denose , Aman Dhoot , Lyude Paul , Mark Pearson Subject: [PATCH] Input: synaptics - disable intertouch for Lenovo L440 Date: Wed, 12 Apr 2023 17:54:17 -0500 Message-Id: <20230412175311.1.Ieb687047a5b75c7b7ee5dd258207ef5ca9a3b728@changeid> X-Mailer: git-send-email 2.40.0.577.gac1e443424-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 When intertouch is enabled for the L440 a (deep)sleep/resume cycle causes the touchpad driver to hang which causes the touchpad to become unresponsive. Disable intertouch resolves this issue and the touchpad is fine after resume from sleep. Additionally, when the PNP id for the L440 is only removed from the topbuttonpad_pnp_ids list, a message is logged to enable psmouse.synaptics_intertouch, which would cause the sleep/resume issue again. By removing the PNP id from topbutton_pnp_ids and then adding it to the forcepad_pnp_ids array, intertouch is disabled and the message is not logged. Signed-off-by: Jonathan Denose --- drivers/input/mouse/synaptics.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index fa021af8506e4..77a4f58128e84 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -150,7 +150,6 @@ static const char * const topbuttonpad_pnp_ids[] = { "LEN2001", /* Edge E431 */ "LEN2002", /* Edge E531 */ "LEN2003", - "LEN2004", /* L440 */ "LEN2005", "LEN2006", /* Edge E440/E540 */ "LEN2007", @@ -198,6 +197,7 @@ static const char * const smbus_pnp_ids[] = { static const char * const forcepad_pnp_ids[] = { "SYN300D", "SYN3014", + "LEN2004", /* L440 */ NULL }; @@ -1769,6 +1769,8 @@ static int synaptics_create_intertouch(struct psmouse *psmouse, .flags = I2C_CLIENT_HOST_NOTIFY, }; + psmouse_dbg(psmouse, "topbuttonpad is: %s\n", topbuttonpad ? "true" : "false"); + return psmouse_smbus_init(psmouse, &intertouch_board, &pdata, sizeof(pdata), true, leave_breadcrumbs); -- 2.40.0.577.gac1e443424-goog