Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7646265rwl; Thu, 23 Mar 2023 07:05:09 -0700 (PDT) X-Google-Smtp-Source: AK7set9Bh9slR4qxVlHEaF91JB8UlCLxpxrsKSfh61TVJHjBZ25Q8h0oqNUjMcP8sjB56gXumaGq X-Received: by 2002:a62:1d51:0:b0:625:cf03:e8cb with SMTP id d78-20020a621d51000000b00625cf03e8cbmr6363376pfd.4.1679580309043; Thu, 23 Mar 2023 07:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679580309; cv=none; d=google.com; s=arc-20160816; b=gbI/1xUtBi9dMi3E7P/zjAXD5/ywb0Nqtza+qBNhMA2Ah5hfYWh56BpGzwWdRwQFmL gBNXdSVeIFJp4l5QZO3jSBM/WlDV02R9uz/78o5qQeaiD4fHHymE98Uw8bbP3bUTrHiS gXdLWvPQu3XGJSq5tF2Z+9ZXb6A2I+DGDvxYlZOi/hzTN7y4aX1NeP+XV8rQ5RyXik5o QDLndgMwf7otWhxX7T5/ROU92Ki+LnlQRuqeyBMJ+Fvv44vWpSvwrHOPiw21CelZfZdr 0/uc1DxEcZ+OJA3OfDw8sGCEpdDgOfKW0cMGutZdKSRXC7Lz6zqiAotOObAg//nfxyP6 tREg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=+e5BhVg3MNZR1C7WyME3hFMGl8W7dVdy97G2mtLclXI=; b=Xg6gX2230lq9mWQKH53deWZKflL7hXn3PeZZRWvqUREpFD3/YQRJJGslyICkQxfGLt mQ59yKU++UoPHZvm4VELJqBvFLX9Cz70eM3B0CoNrZHCbvWFM3Gp2xVcfwqnXQwdggAt 23mm52Fg+5Wh6iMZAGu53JR1ZP91dILa98KjKvXyCmXIjlha+yKWVNr3GQUKReKIzdoo T6GdXrhLSiDQozv738RnaJlS8fyt/XOltmLTgAQQ4FTPgJu0BHCmcgxNLFih+xA1w5yU CARdIvXHVYmAz/VjBlTVXmSO0S6j2zdoxhFEdfRMqEXikfXuE8JAcj9dAgzFDLwHF4HN xYRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a056a00130f00b006262bc88219si17400661pfu.160.2023.03.23.07.04.55; Thu, 23 Mar 2023 07:05:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231672AbjCWN6H (ORCPT + 99 others); Thu, 23 Mar 2023 09:58:07 -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 Content-Transfer-Encoding: 8bit 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== X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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