Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2109223lqb; Mon, 27 May 2024 08:08:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQcD+aPEGUjWgQdTx7FAYXfQvMdi25P3tL74SAcrRQccHmllIzevHwsYsyqOoqf3tY54xTN0pXUkdmAhA44JN4Z5HABOco7fsuEgAWGA== X-Google-Smtp-Source: AGHT+IGuSlo+m2y5g1alkAweaQnum2ye2kMip+uHYz72LdAcH6gKkuGbamc5Zl0AWzM1W6+yucGd X-Received: by 2002:a05:6a20:430e:b0:1af:d1f0:b34e with SMTP id adf61e73a8af0-1b212d38fbemr11855495637.7.1716822514096; Mon, 27 May 2024 08:08:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716822514; cv=pass; d=google.com; s=arc-20160816; b=T7EGv+VTnfCUL8p4udI2oDSzjL3rdMb0h1t/W6zBWyYNmXME0MEeI5K/jlWNqbXDkc LbLmhjlqm0JqQ/hpUOy0BeOKFyT8PhziJd5m+wBEKC4av2sHa96cezIbqk+vOrIr0/fV lCklB477qcIFPJHaHEr+X98qdS8XNf5+sIqHqFDVW/ZZvV/JZVdHmI2Y8y3tPZ4tGw2o azYU2kW9M79hVFYWUo4aWblUfgiUFHWkuqb82IfsVW/U8uH37ORX+YzjstgGQDoDfoC8 Sr+iATRzNWl1csaszRN8aBWEuhDmgYkvgKzeb4aTtxDNoiHj/bMHW1lVNIYTES/SZ/24 zQWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dMXANwyv2wZnh88ko8+crA8lH9o22ooZPfgV1LdA31I=; fh=q0cGVgDB0yZGuWUZJNiTI3vVpS+q8h7dflX1iWWrDIM=; b=rPENODdkVhFj3ZTK2Ep1W/WxAsXC631JtjBlIBnl2fMjbXMEjiL/IMgWsEAsPhck3i uvlwNyqv7W3AMe+3V1TwotaevXHjmD622iAhGazrzsWdhfZx8rDlBT9YaeMN69/uraPs dwQfurxR1tHWVjp2U4qvJzA43kTINb8Anv4rcQ6TKyD0iDNMdTtIj0IvkfGxc3RMOsie D366KyEXrmlgmCmOLk8YP4cZVITRGuP55ujjvRWVT5ZgCe3hLmnBE0Jupkzdbfd/Ldg1 Hc9w5FyDru0pCKgYHfH+OLKbpapDmn/sxBxPHc4p/MT2FZ4x58/F31kQMfoWOnVvvjL2 AG+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OoGG2lPX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822bbc8133si6697712a12.898.2024.05.27.08.08.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 08:08:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OoGG2lPX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C1CE9B2B98E for ; Mon, 27 May 2024 14:44:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4167373475; Mon, 27 May 2024 14:18:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OoGG2lPX" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6230773460; Mon, 27 May 2024 14:18:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819521; cv=none; b=BVAKikHQuT9PG9MvwMSBG6GRWHg64z4er+FSP3Q1NfBLgW1mwdjHhkItQir0p8e7c6G1YjBjyP0f7bbJ5JqLhaMacegDgFG60mmOK0Aq9fX+0Wgtnwf+Y/aYmPDa4IUhR+miT8zzRkfqenwOXwuy4CMriHyg6zeuSS91jLskBA0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819521; c=relaxed/simple; bh=8YHwRPAkqUfLaCoJKSO1bxrUEqC8j5uyJ/GMZaoTkMk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WsTroyG39xUcMFp/VPhfP/9uMleQN5eOknYizvt5rw+dfoXXVT+vCKR4dc6cwM+pOOF455EkKBy64QabGepz4lzCeN4ypSZaKliu0KEmOlWrULLn51b7FghACZFqLOdV0hvq6F+HeARKRrr1m2gN8NEHYJuoEBPYDPZ89d2ZCk4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OoGG2lPX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AF09C4AF07; Mon, 27 May 2024 14:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716819521; bh=8YHwRPAkqUfLaCoJKSO1bxrUEqC8j5uyJ/GMZaoTkMk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OoGG2lPXH4yG7ZRWz7UxvEO8A6mmEJiFoR9Vc56j3F6eyCrZ+MbGp94kwC/B4F1Mi qcTL3YkoWr6xVwyrDEFxM9+EB1/uDjNJPE3xg4unzZeEKtLhG0jF5sljEAca1c34Nt b1HYmBz8xVg5Okq4iYNBBweWUQ2CuHcNZfWSji0n3g8Bc+iqVKh6j3XydhsCtJQLq4 4+JUMloQ999mMmFa//fMYPTlE7iujfVJev7j9zhaPfu79YDGB/txowEzpzUH6RKP/v isrvWvnCfvI3g8qPrOeiZfyOOZke48zOVqcC9nMwVdNxtCcEzAuURZchFNr46xtpe3 y2+KAaz7tzdOA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sean O'Brien , Jiri Kosina , Sasha Levin , jikos@kernel.org, bentiss@kernel.org, linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 10/13] HID: Add quirk for Logitech Casa touchpad Date: Mon, 27 May 2024 10:18:04 -0400 Message-ID: <20240527141819.3854376-10-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240527141819.3854376-1-sashal@kernel.org> References: <20240527141819.3854376-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.15.160 Content-Transfer-Encoding: 8bit From: Sean O'Brien [ Upstream commit dd2c345a94cfa3873cc20db87387ee509c345c1b ] This device sometimes doesn't send touch release signals when moving from >=4 fingers to <4 fingers. Using MT_QUIRK_NOT_SEEN_MEANS_UP instead of MT_QUIRK_ALWAYS_VALID makes sure that no touches become stuck. MT_QUIRK_FORCE_MULTI_INPUT is not necessary for this device, but does no harm. Signed-off-by: Sean O'Brien Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-multitouch.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 7b1fdfde5b405..0504bdd465013 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -777,6 +777,7 @@ #define USB_DEVICE_ID_LOGITECH_AUDIOHUB 0x0a0e #define USB_DEVICE_ID_LOGITECH_T651 0xb00c #define USB_DEVICE_ID_LOGITECH_DINOVO_EDGE_KBD 0xb309 +#define USB_DEVICE_ID_LOGITECH_CASA_TOUCHPAD 0xbb00 #define USB_DEVICE_ID_LOGITECH_C007 0xc007 #define USB_DEVICE_ID_LOGITECH_C077 0xc077 #define USB_DEVICE_ID_LOGITECH_RECEIVER 0xc101 diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 2e14e3071aa69..fea27d66d91c0 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -2082,6 +2082,12 @@ static const struct hid_device_id mt_devices[] = { USB_VENDOR_ID_LENOVO, USB_DEVICE_ID_LENOVO_X12_TAB) }, + /* Logitech devices */ + { .driver_data = MT_CLS_NSMU, + HID_DEVICE(BUS_BLUETOOTH, HID_GROUP_MULTITOUCH_WIN_8, + USB_VENDOR_ID_LOGITECH, + USB_DEVICE_ID_LOGITECH_CASA_TOUCHPAD) }, + /* MosArt panels */ { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE, MT_USB_DEVICE(USB_VENDOR_ID_ASUS, -- 2.43.0