From patchwork Thu Mar 23 13:51:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Weigand X-Patchwork-Id: 666393 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 9A05DC6FD1D for ; Thu, 23 Mar 2023 13:58:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231910AbjCWN6B (ORCPT ); Thu, 23 Mar 2023 09:58:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231459AbjCWN57 (ORCPT ); Thu, 23 Mar 2023 09:57:59 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5023393E3; Thu, 23 Mar 2023 06:57:58 -0700 (PDT) Received: from koko.localdomain ([89.1.213.94]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MdNPq-1qEg7Z3cnY-00ZLEr; Thu, 23 Mar 2023 14:52:45 +0100 From: Maximilian Weigand To: Linus Walleij , Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Maximilian Weigand , Alistair Francis Subject: [PATCH 0/6] Small fixes to the cyttsp5 touchscreen driver Date: Thu, 23 Mar 2023 14:51:59 +0100 Message-Id: <20230323135205.1160879-1-mweigand@mweigand.net> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:JOAqyRTVG5uDiEIeXH/4dCz/MkWByUALV6oyJfiU5CzPIBn5XK+ e9Ux4T5lUNqYnx6Q658/Gu3c1+SlMfdMq1QPyxOxhrpu/ceEqv5Ox9hesRy1cu3Wj3s7zv+ MZo9/PnIl/LRf3pzRCwd6vXwQKAG6KXdJJZqPEbhShxD6x5Rz5LSb1CTlAENgLfAcuurgDm YDqx2NSgal95zEB80+Q4w== UI-OutboundReport: notjunk:1;M01:P0:bprECCQxY0w=;NgAleBBDWDAR8yoqUSGi3AdAy+E 0p3CINEFazWUNbK//03G5dKunXePXVRnsCaFNMC1eUf/26LJtlUky9XX/lvmXvM3wiYenFkP2 0Ns1gDg6jUYzOLY1JQMrySOBk1sXqM4MSmIvC5X1B9ieLFcFVLbMki1PEMCSgplCVZUQzd+DY QnDUvV6Icbn4sNkjm3F8umGK5SHmhOcp1+EoGZbP92WQlV3tiK7sTOmSgyLB3jy0I0T/dqYPd NS3hIkVj7tfeQo87lFQM8f4fFYyqHg1PBT026inZ8ZdgNLvIsxKx0w1A+7ZpCibATEDP3iVw4 cgKoWQYaLWM7NP6g2UY2NMgivRgWaNcm05UpR0flJOi9yO6dl089PBY3Dx72/2LEcuUL8zMCN 3Z7AaQhx2/gKUtHTXzxboFfD8gxu+Sju8P1Jy03E7ufwaCUcy/oRE9dX7i7YXqb54m542rX2B VPWCCA2f4nsnPe+EXrR2qeN/aEkxGoL5DajrGE9++0ImOgg7r2zHgNQ40ue766SCxA+xj7Zw5 2OyG7+Yy6n01r0nyqf9EDKivOGBuvwpfbQnWV63ZOJuaT/NWUkwZtCUQgIx8APxxm12HOVxLY 7vslXpHvHuzSk163FfWQbnzkyE92OgBqr1cLl7O5mOrqMP5z+upgGE70351VrCGhbvPqlvRiC Y7lGHU2etsPjxARQ7pjfSpoo6/ZpMhk36L50MHu7HQ== Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org While working on some intermittent module-loading problems of the cyttsp5 module on the Pine64 PineNote it was found that the device tree example of the cypress,tt21000 was in error regarding the interrupt type (IRQ_TYPE_EDGE_FALLING should be used instead of IRQ_TYPE_LEVEL_LOW). This lead to the proper implementation of device sleep states, which is required to ensure proper functioning of the touchscreen after resume when the correct interrupt type IRQ_TYPE_FALLING_EDGE is used. Sleep and wakeup commands to the touchscreen were derived from the GPL-2 android driver by Cypress Semiconductor (copyright note for Cypress Semiconductor is already in the current driver). The first two patches fix small issues with the code found during development of the suspend functionality. Maximilian Weigand (6): Input: cyttsp5: fix array length Input: cyttsp5: remove unused code devicetree: input: cypress,tt21000: fix interrupt type in dts example Input: cyttsp5: properly initialize the device as a pm wakeup device devicetree: input: cypress,tt21000: add wakeup-source entry to documentation Input: cyttsp5: implement proper sleep and wakeup procedures .../input/touchscreen/cypress,tt21000.yaml | 4 +- drivers/input/touchscreen/cyttsp5.c | 138 +++++++++++++++++- 2 files changed, 136 insertions(+), 6 deletions(-) --- 2.39.2