Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3147230rdg; Tue, 17 Oct 2023 06:12:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGaSanD3RXe6YlgRdy49EUDNMNbCwJEDbG79qPYckD0T2epsBDzvli0a1TW3aD1ypZwjOpB X-Received: by 2002:a17:90b:1097:b0:27d:24d6:7343 with SMTP id gj23-20020a17090b109700b0027d24d67343mr2115438pjb.19.1697548332765; Tue, 17 Oct 2023 06:12:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697548332; cv=pass; d=google.com; s=arc-20160816; b=Y09EQullz0GKZ24CkqDGl6+O9XaM13QfQwnyf8sndhxSIZXbDEXq1vl0suJ1LKNvje 964t7gfUrv7e1mZGkFxnrMm11rcZ37JD1pm715KVveUPFO0kPI0vtuUeEdIBHqaYdRbn 9hgh6J+Uv5uw/3SHahZ+mQfq+MoE83SkiwOPhgv8A8zqkDi9IuIaHl4f6MT0UTDZ9h3A FF0prTDjxo9KqoMDYnzKvvcWTnfH7zlP9ESm1B2NXnraUt9jL6XiCfpyEcw4q2p4l7Qn gNT/M1YnxJ1lKt0V4iVMotLJrZUiHmZGNYS2eHbTR5AstfUWb/iYxu+R363ueHLlkYAI 2nWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=sNgZZi17qr97aaiUk3P9ofMHjKqfiE6A3rZ3th2V9xk=; fh=/CvMZk7VJYXrHU3MidPWMyGKDnq+f01hrMMRY7lmUmw=; b=gbbXK91OFCMuqzPt/W9CzQ2wO8++e0nkRZQ7blDoe1ZCDGddrsI2K/OEwItSC/mwlA ocvEDameVKL13/CiZNicNGoZi2nGhB9qn4zBpTF85rg+vWnBRDQkOruif4NtF97Ug/H6 Jy+8cfSj14s6uGObcMDrO7yw3IvAf03GQlZCWA8Mt+AhTdh9EgtT+9Sgx3mELNScuked 5m7mcQmKgCsvJxew7zO96gOIsWSemebTaLHKAMXAeOjJNVkBtMzdEHX9M/4Bv+JUn0pw +PDaVGrjzBZcBeCCj/Uj5UtowCR52kJkT+wWI3fBIJ+6YMmNtvMsC9h5PVcYRcimvW+l +Dpw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mt.com header.s=selector2 header.b=letWA6nC; arc=pass (i=1 spf=pass spfdomain=mt.com dkim=pass dkdomain=mt.com dmarc=pass fromdomain=mt.com); 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=NONE sp=NONE dis=NONE) header.from=mt.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id v20-20020a17090abb9400b002745c4e215fsi8427933pjr.175.2023.10.17.06.12.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:12:12 -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=@mt.com header.s=selector2 header.b=letWA6nC; arc=pass (i=1 spf=pass spfdomain=mt.com dkim=pass dkdomain=mt.com dmarc=pass fromdomain=mt.com); 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=NONE sp=NONE dis=NONE) header.from=mt.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 525988036E99; Tue, 17 Oct 2023 06:12:10 -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 S1343802AbjJQNLv (ORCPT + 99 others); Tue, 17 Oct 2023 09:11:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233940AbjJQNLu (ORCPT ); Tue, 17 Oct 2023 09:11:50 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2118.outbound.protection.outlook.com [40.107.7.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87C5CED; Tue, 17 Oct 2023 06:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uu6voIosV68YI5ifr2ESg4FHHjpjh1z64/i6nioKmxQSLB6/wsEc1NhetLz2YWY1GzXcBDBPafTLe3na6bkN81HcWyELegDxLge/yaqEMXB73hlaaH6RxbBU1v5Q8xpzWLa5ppDZdScVSQ5cKWR04sFpwTYz5XjioKGx5Hiv3jFeRSUG7WwSKWisY6Ag1Nv+w4kdhMMmxqw2m5Mpahb2lS4TwQP3E6aguMkC7/pTOD3zGNy4iAaLAaqqMGuAHBLFkQIkMa8cMdL5DLsOjgSnACNo1aWASyFhjJiw5hef1ADccPWIErp0BBQcwVNq7kWygkm3Z5xcGs7+DJeoF+S8Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sNgZZi17qr97aaiUk3P9ofMHjKqfiE6A3rZ3th2V9xk=; b=gqD7WlU+rq6wgWIrKapPHDUEH9SFl5w7IoWcC6LrxZcgIBynTOeCLjwPlE0equXbZE7aDN1NfwtSJ5yRa6QfARkTg7ulh62UnqBhpt7cGXBcyARh9oesvQ0qV+CpzaZDg/pNOZK5yruBi9IYwSEqoffp6siW/LjQShhJ5tEH/M0M7ZhcfzLjk2mAhmu/k8+zXfnkMeZbJDEPuK4Xx4Epv5XGyj3AOOFTtYI5TsK9CIpMNDTOc/cr0Evl1NO/JA/AWu0ZzEHZWJPzPndnU++1LFOEuX6V5J3TfBH88hbEUns2ok2ha6hVHSOrA/K/gTfT4X291TqLYLuktUaSQukyeg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mt.com; dmarc=pass action=none header.from=mt.com; dkim=pass header.d=mt.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mt.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sNgZZi17qr97aaiUk3P9ofMHjKqfiE6A3rZ3th2V9xk=; b=letWA6nCuQnKxEuD8A+CupyRwGEP0ge2QVg856crKtF4iM7fGinDFeoa0DjdClHEdtKebWP6AdccQUkX/vUrO7PS23yP8BGmgZTwiOzCYbRzl6iflkzB64fKAlxu4M4H654WzOoFNtYq4hdNF7xqT8vd3bgAoeZJ5VxiHh50Imz2U8gnZe2U3cJXFF3zyuyyZn6zX39PHIJ4zKr1J7ge2QbFNQfh3OujrrEgyxrUx/JR4KN/lJbuU35/lMyOAmFIPo4FNCwLqr+Oz29K2Bip//TC1QH7TE0LEcFoi0iHJDsYQhaNxj8t4GdqLWwtamToQdQDhnk8MvgFFghsyC4/sQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mt.com; Received: from AS8PR03MB9071.eurprd03.prod.outlook.com (2603:10a6:20b:5b3::17) by PA4PR03MB7453.eurprd03.prod.outlook.com (2603:10a6:102:e3::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Tue, 17 Oct 2023 13:11:45 +0000 Received: from AS8PR03MB9071.eurprd03.prod.outlook.com ([fe80::c1b2:3dfd:21a2:834b]) by AS8PR03MB9071.eurprd03.prod.outlook.com ([fe80::c1b2:3dfd:21a2:834b%7]) with mapi id 15.20.6863.043; Tue, 17 Oct 2023 13:11:45 +0000 From: Markus Burri To: linux-kernel@vger.kernel.org Cc: Markus Burri , Dmitry Torokhov , Henrik Rydberg , linux-input@vger.kernel.org Subject: [PATCH v0001 1/1] input/ts: ili210x: send abs-mt-pressure for untouched Date: Tue, 17 Oct 2023 15:10:57 +0200 Message-Id: <20231017131057.1034956-1-markus.burri@mt.com> X-Mailer: git-send-email 2.39.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: ZR0P278CA0181.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::14) To AS8PR03MB9071.eurprd03.prod.outlook.com (2603:10a6:20b:5b3::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR03MB9071:EE_|PA4PR03MB7453:EE_ X-MS-Office365-Filtering-Correlation-Id: c21a9547-9392-4bc2-732e-08dbcf129cd9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: T8S7R1uzq6yaJ63QFyL8GiBv2rbEfb0dKpEu9rdC3UCMhWiFksbXcz3rhe4kQdB/oQCGInhRnbtjLvujc3t/8nDQY0FCCFbdfI0z/IbD4GfFjK3uF1D0nmTzXNPl+ncC1ogGyJMxV/JEz8dCDqDLzBILnd900Jo0aKabFHueypI4TCkjYVDZmeFm5/JI3xg6JdAnIvitEtwBz2qgIo6AWsy1QPd/SLFMiXJv7xKciK93udTi8Wu+EgF+kLkUMs1UryL9SGqvp5ipP/On2z4Z5Tp5mAdLHjg/ExsYZelN2qBgZLsqwaB045nc0O20dDdzjvBJUtbpyalYUF1cXm0dJScIXXfKP5p/rxN1S1dmNjPPeem5rsUeqaD05z5xzmPLkq9lFd4kynP1vnA69yM4yLTVahbNZSm8gqPYukF9sb5NuC8Pg7PBqbB4Mg5ct6VWn3d5M/t6DOrZ0WfoldsfBabbZgg9Livl/JQ3XABRiNALUKl44ZDhaTHbKkc9Zp+buYTfgyEu9izFqKg8TdDgSX2uieiR6rhrTQDBK5TphEw3XiRqoPemJVOH6RVimM55eW/Eh5bLzISc/LOZ+smvnIUijAM9ku7K9lRK3EncXXEsge70KGC9HG7Ujzcoc28Q X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR03MB9071.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(376002)(346002)(396003)(136003)(230922051799003)(1800799009)(451199024)(186009)(64100799003)(316002)(66476007)(66556008)(66946007)(54906003)(6916009)(6486002)(478600001)(6666004)(2906002)(41300700001)(44832011)(5660300002)(26005)(8676002)(8936002)(86362001)(4326008)(83380400001)(1076003)(38350700005)(38100700002)(36756003)(52116002)(6506007)(6512007)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?FyHEWUUQpIY9HkYeqLBahAFgWCXBk48Ai+scp2S7bLftT8aggqgpo8H0FrU6?= =?us-ascii?Q?zTpV5aCZYgPu+/fbUemNpoVdOPB+fzQqSLszuXiYhkRCNqh74BNa8emkxX0b?= =?us-ascii?Q?aiOh46JF+FtmVQ11XYUiCLkJ+pWc4OzlC9//RMUFUs/TRel2VUa4Na6wRVfB?= =?us-ascii?Q?geyKYlUlUFz9WqihNdaEP4vWU0zzzqhx53wUSGKrCc8QSVMyQWBtUVwiM6Lo?= =?us-ascii?Q?Pd8EkfCnRgmE5LdT5sw5C7LiTsUDDokGmJZP7hvcu1ks2ovvb6tr+xBFa+6s?= =?us-ascii?Q?moKszqS5L5FNW3QAm8i/OA4m1UDAQeP/u/3Rik0I5YnQRlyZ0l9rdJHV0c66?= =?us-ascii?Q?9KkjrhuK3uEifyenAeWqn6PGjrrBIE6D94oRKrukCphc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ymJ5qNnziaa34+VSAeZFUYBy3I3qX6avxkcFtb?= =?us-ascii?Q?Lfvzr+Svz12IYDikpAPd6h7eDKaN2KdjUbT+dL0R5vAZCRey+Yg9v9o9kljn?= =?us-ascii?Q?JiwOWdJVzMhauSsA8nLJjmNtPIDpSwCiWC7+XwIcM729Qi5OK1jyKgD6gxN/?= =?us-ascii?Q?qfMb2B3nfY49MbxDHwh4SbRnOQOD5baWUZVI9D6E1kK4x0IxdyU+SlyoDSnG?= =?us-ascii?Q?ohl+pNHhgkDgHSLfF+j3V2y46z0G0XqT2IU+QLxHhzwWadL1+gGF36HsZpTA?= =?us-ascii?Q?6Bys5qZWN55KrmzvLtVaLVlQLb28kjAFL7SEmeS1?= X-OriginatorOrg: mt.com X-MS-Exchange-CrossTenant-Network-Message-Id: c21a9547-9392-4bc2-732e-08dbcf129cd9 X-MS-Exchange-CrossTenant-AuthSource: AS8PR03MB9071.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2023 13:11:45.3390 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fb4c0aee-6cd2-482f-a1a5-717e7c02496b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KjZcN5OQMnIwFwwzKgeY6QGHfseDaUDg8w4WybIUNWrBa2rMKAzLYoZu0/EYOFBUdcP6iG1Q9rMax2ujAlcJBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR03MB7453 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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, 17 Oct 2023 06:12:10 -0700 (PDT) Send the ABS_MT_PRESSURE event in case of untouched with zero pressure. Multitouch pressure is only sent on first touch. Therefore send an ABS_MT_PRESSURE event in case of untouched with zero pressure. This avoids that the next ABS_MT_PRESSURE event will be filtered out by input_defuzz_abs_event() in input.c since the pressure value has not changed. Signed-off-by: Markus Burri --- drivers/input/touchscreen/ili210x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/ili210x.c b/drivers/input/touchscreen/ili210x.c index e9bd36a..6b79513 100644 --- a/drivers/input/touchscreen/ili210x.c +++ b/drivers/input/touchscreen/ili210x.c @@ -318,7 +318,8 @@ static bool ili210x_report_events(struct ili210x *priv, u8 *touchdata) if (priv->chip->has_pressure_reg) input_report_abs(input, ABS_MT_PRESSURE, z); contact = true; - } + } else if (priv->chip->has_pressure_reg) + input_report_abs(input, ABS_MT_PRESSURE, 0); } input_mt_report_pointer_emulation(input, false); -- 2.39.2