Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2124038lqb; Mon, 27 May 2024 08:34:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOFD2DxBpoGmpzLuNgZl6+6OUMfX7WWgOT3sSuSeX38wMABwh+uLjscokEhr+KCn0gUtSzSFnx5m9UqNfPrOJb6ipdhA28Ea1tOMO5XQ== X-Google-Smtp-Source: AGHT+IE7MPJxXouuzJaxUlHrgj3SWt3x1+QBSB/WpOYHPXCt9cEJvu2+zLYap8/Ubt6r2VwX0oU8 X-Received: by 2002:a05:6a00:8013:b0:6f4:bc26:e18c with SMTP id d2e1a72fcca58-6f8f32a1271mr11168686b3a.12.1716824058402; Mon, 27 May 2024 08:34:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716824058; cv=pass; d=google.com; s=arc-20160816; b=a/P1BLARL2AwKUIR/uWvkqeqLvJ1j5FmQOzcfHy/Rl4ksDbZVHKC95xMlasLnfDCHs O9xZfrSu1iw1yavEb95SZgqkviBjLxE2Ym1pHzaavtuxmrO3kiDxekhtMt+d9AxG/Qh4 F/SPi6GG7Plfo/IzcXv8h66O4RLrA+RptIfPQxYKLNubFnDEo5fi7/hvj0ltOZ1y1aQs OHDWDDp5ktLrv+7C5K5CyKb8MmzmlS+HQBDwVNm5na9whyQK671eiHO8La11drPSwIul ZsQl2oBiluTF75hGplMRIXVPqVdWemPnlk+N4i5PaTE3kqkEiOUP+i+b/LcBNASCSkRz /f9g== 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=KYHcujrNNBu914qzbOyp9a1m9lG4pWkG/T4o1T+ZlAE=; fh=q0cGVgDB0yZGuWUZJNiTI3vVpS+q8h7dflX1iWWrDIM=; b=b21C5RWxwnzJUup2QXDROv6udS2uhpbZhOu1eGKaY8bHab5ViwHdmqFbq40ALalBvP ngDv1cASJLUGnP1qGSST0rARAbqc/wqKgvjMs06Vx+XxM+iAd0iQFQocUjtQnDdxOXaf kpMTKsGs2jKSBRX0a9LHD4m56ld2ktlYkfSEzYKeGAJA3cu8ixhye9RHxu4LYidi3jHK au+Fmh8GeU5jSLsYG2st102nYWAf6yU46dwARXO/upbEvZ2hUfJQJsA1XbbgYzPL3R/T aZPN538lSDDkMptV+bCCLPIPM/0KEGwXYR2Xp+vi7pp0sYEKfsu7vsN0wXYRydPgvJM5 6Dow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mcW5E8s2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190934-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 d2e1a72fcca58-6f8fc053bcbsi6201797b3a.80.2024.05.27.08.34.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 08:34:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190934-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=mcW5E8s2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190934-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 81E61B338AC for ; Mon, 27 May 2024 14:49:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A38BA168C2E; Mon, 27 May 2024 14:19:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mcW5E8s2" 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 C86EB168C17; Mon, 27 May 2024 14:19:34 +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=1716819574; cv=none; b=J7G/I2A3VTZ2CdXO18W58OECKnFIkKXs0yyGAX1LbvLbUJvQO1mvMzo055FWZbXRgQpMher5bXbNY/ZxutYLPro/Pqo3cQrfZbDx/zKKN5F2qaLGEO53DtzR2MphHtv9qwSp3KNitZX3ayHqPMlxtM1C8IGhY0FRQZybAl68s3w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819574; c=relaxed/simple; bh=NXAqXjPE/NMeldOeBm2byS+kMVIl+2R4hN11reIED+8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=J75Va3haYz76bKfe7BZNOxdGiMaVTf3OmbYkFBa+8WxRyz3y8VYMCjvCifp4bsgsAcXxoBFDqiu3QKlxhG5+1nCQ7LbH820w4VN1a12dNVqv6OQDgokkTk1YlEvodGgrkID5s3HZ9meQNtc6j99Ojintmzdzft3MBrDrxrQynrk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mcW5E8s2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEA90C4AF07; Mon, 27 May 2024 14:19:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716819574; bh=NXAqXjPE/NMeldOeBm2byS+kMVIl+2R4hN11reIED+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mcW5E8s26bu1SzTB5vPd9qEDDs5CCw2L00DUsHYfxDGXbNSWij21l/DqMQcYju1Xe 7ESALwDZVCrNEH6vrDagwM+bkpYuNRO0KWDI5O+zqc9+jyjfYZ2weE8xhhfiugNcVy i3UwQk7+Y7JpGCvTrxjrM3Zce5AXnpJOdRoEOVNnfV+PqEgAqF3vmnUW7LR3BmLzNS dZeMaD4waN69MViFYpCKEI/8nSDb/kYVv4+0Mgb81GJ/NGJL98OQGogxA1x86GFKlb RV+Pvh2w8UYF41wAr0+z1mC3Oxk8SDZHIZMZtkaYXWiIDsgQgg+WLqG9mKZQWShZgH XEJHnxjZ3Gh0A== 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.10 10/13] HID: Add quirk for Logitech Casa touchpad Date: Mon, 27 May 2024 10:18:47 -0400 Message-ID: <20240527141901.3854691-10-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240527141901.3854691-1-sashal@kernel.org> References: <20240527141901.3854691-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.10.218 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 0732fe6c7a853..9f3f7588fe46d 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -765,6 +765,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 8dcd636daf270..e7b047421f3d9 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1998,6 +1998,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