From patchwork Tue Oct 17 13:10:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Burri X-Patchwork-Id: 735350 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA37ACDB474 for ; Tue, 17 Oct 2023 13:11:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343788AbjJQNLv (ORCPT ); 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 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: FyHEWUUQpIY9HkYeqLBahAFgWCXBk48Ai+scp2S7bLftT8aggqgpo8H0FrU6zTpV5aCZYgPu+/fbUemNpoVdOPB+fzQqSLszuXiYhkRCNqh74BNa8emkxX0baiOh46JF+FtmVQ11XYUiCLkJ+pWc4OzlC9//RMUFUs/TRel2VUa4Na6wRVfBgeyK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dpS/an+VhqdH+eymJ5qNnziaa34+VSAeZFUYBy3I3qX6avxkcFtbLfvzr+Svz12IYDikpAPd6h7eDKaN2KdjUbT+dL0R5vAZCRey+Yg9v9o9kljnJiwOWdJVzMhauSsA8nLJjmNtPIDpSwCiWC7+XwIcM729Qi5OK1jyKgD6gxN/qfMb2B3nfY49MbxDHwh4SbRnOQOD5baWUZVI9D6E1kK4x0IxdyU+SlyoDSnGohl+pNHhgkDgHSLfF+j3V2y46z0G0XqT2IU+QLxHhzwWadL1+gGF36HsZpTA6Bys5qZWN55KrmzvLtVaLVlQLb28kjAFL7SEmeS1 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 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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 Tested-by: Burak Gerz burak.gerz@mt.com --- 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);