Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2074285rdb; Mon, 9 Oct 2023 11:34:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPmxdzu8yrJGt/usMyAUwjcR8Mfnt61wJ8GAlgtckwRbfEOGt3zPNdQYayMtmgv7U5YqBs X-Received: by 2002:a54:4883:0:b0:3af:6cf3:d62f with SMTP id r3-20020a544883000000b003af6cf3d62fmr16417527oic.29.1696876474089; Mon, 09 Oct 2023 11:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696876474; cv=none; d=google.com; s=arc-20160816; b=raDNoIaUIi/ElQJbq//Uqxs3g8tDYxjMNInPIqeaQSb8AB8bzqIY1Eiw3aGxRLY2aL mG/wyD57n/6dgfGvbDVrh2HISnMXNmrmYPeAcV8SoCVwteveCaX9iTxqIXZOiYhkDXjG 1Ca23q5fNBu6L1X9kss1ScUFfznYeuq8OuLb11Pm/UjYzeBmY6Oj68ZWeJIJZ18GON2W kRquIA5WkBfdJE2t/5xrc+e1Fu9GG4gaHUZAv5HYqfBLr7F2E1TVNIqytNRhRgwPXbb4 wkFKAba5oI37rkAWMKFfn5M5JUWrJnomoYd0l8nU8TLuTb1o1LpGDBrFL6p4BFved8jQ +riQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from; bh=xo+IZ8aXUPfK74mNUnIiiCQVaulGXaJiWDVNIX5QmZY=; fh=1i6b6fQBnaiq0xRa3ncF4yVLO4LQ/VVJhygl9h24PAo=; b=QrMrFn6JNLz7sMfOk6ElyB8UJHtmmXCrKQp8/7BmUzMGOF6F7b1f96fvPTSO78hl8x epfq3+8pyt9Wtj1Y8ua5KGBQ5z1Z8+OU+V3zE8gS9Jrp3azQx1k9cmxHbjHw/F8f3++k 0Czx32U8i0dx+yqih5XD6ZXXjU/+Pp41hE61Wu6J0fNE5YpQUR9HYk6iYvr7QwZIlTeY 9FvQlb3OoN7c7eGpFsT95N/g5DojKoOaZz6UQm6m3vZC/OBbuv6UwEo407iDs4WNnxcL mGGKSt385qwCGzZRSjYYl7zFQ88V2jQE9fxy85tlH6jByj6RL90pnH/aOdPjQ6ZDezPU feOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id b13-20020a63d80d000000b0058986c07537si8341616pgh.220.2023.10.09.11.34.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 11:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 3794680FFDAD; Mon, 9 Oct 2023 11:34:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377927AbjJISeT (ORCPT + 99 others); Mon, 9 Oct 2023 14:34:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376990AbjJISeS (ORCPT ); Mon, 9 Oct 2023 14:34:18 -0400 Received: from mx.skole.hr (mx1.hosting.skole.hr [161.53.165.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5467BA4; Mon, 9 Oct 2023 11:34:15 -0700 (PDT) Received: from mx1.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id 8CE5B84F15; Mon, 9 Oct 2023 20:34:13 +0200 (CEST) From: =?utf-8?q?Duje_Mihanovi=C4=87?= Subject: [PATCH RFT v7 0/6] ARM: pxa: GPIO descriptor conversions Date: Mon, 09 Oct 2023 20:33:57 +0200 Message-Id: <20231009-pxa-gpio-v7-0-c8f5f403e856@skole.hr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAJVHJGUC/13Pu2rEMBAF0F9ZVEdBr9EjVap8wLJdSCF7xmuRs DZSMBsW/3uEikS4HI3OHe6DFcqJCns5PVimLZW03Orgnk5snOPtSjxhnZkSSgsvHF/vkV/XtHA 9kgIEZ7w0rH5fM03p3qLe2fntwj7q45zK95J/Wvwm26olBWX+kzbJBVdewOAdeh/Ma/lcvuh5z i1jU72znVPVBW+MNSgtIB6c7l3onK4uTh6BAOWkj/fMn5NCyM6Z6sSkh+CALCEcHPSu7wfVYQi R7DQSRX9wtnd9P9v6ycEEKRBC6Ny+779wKZyzvAEAAA== To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Alan Stern , Greg Kroah-Hartman , Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Dmitry Torokhov , Mark Brown Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-gpio@vger.kernel.org, linux-input@vger.kernel.org, linux-spi@vger.kernel.org, =?utf-8?q?Duje_Mihanovi=C4=87?= , Bartosz Golaszewski X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3356; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=9HISThLWXYrKw02vad3s3jjv7OIK+LTjobe89BliE1o=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBlJEebqRxXPSHSkqz3VzFiWmCYluOEsVC6FdrVX kdBjEH03BqJAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZSRHmwAKCRCaEZ6wQi2W 4d/PEACEBwdEFzScJK2AKBhR+Sh2TExixXRhlHrijlQj6TpxuD3ccuPKBwNKoZx1nfg5Z14ao05 kzPcyamJc9OOofLeF+CSKg1kXy9MnQx4NPmIhk/HiZI5ZkbsbTRPUHhji7GXpD7vy37vLW8SmW+ U/aVMCAv2sXe3Iism4UxDi4Qgp6khIb4t3K2T2o7efDiM+9aaZOsK/5d5z+lwdTcQfZsYN04//+ SmnmRIZHrBREnhjCn/M0VF7Y6fXBtfcnxIXY57RfNpRjKCjF1z4gWdVaK/utVHdPBqhUHK4S5YO qxxR8DmS9jOLL04bafaq9UR4ayEsQTdmIVmOE26pufWaT1MV8OAyOGuyUxnrqLIWfoDzFnPZGM4 lHtEhuh6t2CIVK/Yo2H7ym0MoJiZtkGgcr1g7Snch/ktNt3fLXO5WMhO7cgWmPxWQ90eaOIaAF2 SlRDrw10T7ZMqn2gcbMcszt9tse57mDNwMbFw8UH2C1qWphXlWa7iQ9jMWdDZ1U0Lx76PAbS1Gh ozJ0uyhzzM/yc04meQpxIiI7d3+mk5yKmneRV0H96L1j8vC7QGT8Otzqnds8r0Jv3BWdnwcQVoN 8LY0KS6bRzLQx+4qnIhQQtSv4Bl5dMYZK0dQHvuNsIgTIgRwMUlsk6tJ9wewoObMT3UypmEGldh udURqlb2X3xSY3Q== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=53DF9D4D9C3FE110FB362D789A119EB0422D96E1 X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 09 Oct 2023 11:34:30 -0700 (PDT) X-Spam-Level: ** Hello, Small series to convert some of the board files in the mach-pxa directory to use the new GPIO descriptor interface. Most notably, the am200epd, am300epd and Spitz matrix keypad among others are not converted in this series. Signed-off-by: Duje Mihanović --- Changes in v7: - Address maintainer comments: - Drop gpiod_put in OHCI - Make "struct gpio_descs *leds" in Spitz LEDs global - Link to v6: https://lore.kernel.org/r/20231006-pxa-gpio-v6-0-981b4910d599@skole.hr Changes in v6: - Address maintainer comments: - Use devm_gpiod_get_optional() in OHCI - Use gpiod_get_array() in Spitz LEDs - Update trailers - Link to v5: https://lore.kernel.org/r/20231004-pxa-gpio-v5-0-d99ae6fceea8@skole.hr Changes in v5: - Address maintainer comments: - Rename "reset generator" GPIO to "reset" - Rename ads7846_wait_for_sync() to ads7846_wait_for_sync_gpio() - Properly bail out when requesting USB host GPIO fails - Use dev_err_probe() when requesting touchscreen sync GPIO fails - Use static gpio_desc for gumstix bluetooth reset - Pulse gumstix bluetooth reset line correctly (assert, then deassert) - Fix style issue in ads7846_wait_for_sync_gpio() - Update trailers - Link to v4: https://lore.kernel.org/r/20231001-pxa-gpio-v4-0-0f3b975e6ed5@skole.hr Changes in v4: - Address maintainer comments: - Move wait_for_sync() from spitz.c to driver - Register LED platform device before getting its gpiod-s - Add Linus' Reviewed-by - Link to v3: https://lore.kernel.org/r/20230929-pxa-gpio-v3-0-af8d5e5d1f34@skole.hr Changes in v3: - Address maintainer comments: - Use GPIO_LOOKUP_IDX for LEDs - Drop unnecessary NULL assignments - Don't give up on *all* SPI devices if hsync cannot be set up - Add Linus' Acked-by - Link to v2: https://lore.kernel.org/r/20230926-pxa-gpio-v2-0-984464d165dd@skole.hr Changes in v2: - Address maintainer comments: - Change mentions of function to function() - Drop cast in OHCI driver dev_warn() call - Use %pe in OHCI and reset drivers - Use GPIO _optional() API in OHCI driver - Drop unnecessary not-null check in OHCI driver - Use pr_err() instead of printk() in reset driver - Rebase on v6.6-rc3 - Link to v1: https://lore.kernel.org/r/20230924-pxa-gpio-v1-0-2805b87d8894@skole.hr --- Duje Mihanović (6): ARM: pxa: Convert Spitz OHCI to GPIO descriptors ARM: pxa: Convert Spitz LEDs to GPIO descriptors ARM: pxa: Convert Spitz CF power control to GPIO descriptors ARM: pxa: Convert reset driver to GPIO descriptors ARM: pxa: Convert gumstix Bluetooth to GPIO descriptors input: ads7846: Move wait_for_sync() logic to driver arch/arm/mach-pxa/gumstix.c | 22 ++++++------ arch/arm/mach-pxa/reset.c | 39 +++++++------------- arch/arm/mach-pxa/reset.h | 3 +- arch/arm/mach-pxa/spitz.c | 71 +++++++++++++++++++++++++------------ drivers/input/touchscreen/ads7846.c | 22 ++++++++---- drivers/usb/host/ohci-pxa27x.c | 5 +++ include/linux/spi/ads7846.h | 1 - 7 files changed, 94 insertions(+), 69 deletions(-) --- base-commit: 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa change-id: 20230807-pxa-gpio-3ce25d574814 Best regards, -- Duje Mihanović