From patchwork Tue Mar 7 13:04:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 6235 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2420399wrd; Tue, 7 Mar 2023 05:12:13 -0800 (PST) X-Google-Smtp-Source: AK7set+m3wKLS0NdFlgvoO4ty5aci0pjedzOqVhUM8OfDwg6QBNWyi25g+0MUbFAntSjgyIzLi6p X-Received: by 2002:a05:6402:1810:b0:4ab:ec2:3cd1 with SMTP id g16-20020a056402181000b004ab0ec23cd1mr13352951edy.25.1678194733412; Tue, 07 Mar 2023 05:12:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678194733; cv=none; d=google.com; s=arc-20160816; b=ORKKuvmeCWmyNfRsZYAQTERBEGfym/JTOWurf0gWPvLHLssehVVY0M4U6epmuRu8+w H/CQdu6FxflvGNPwbE5X2x3aUzvyS0j1CzwI9TGgqTYfhoXv20nlJbbpJ5+BXaaN+xRM zeIptjFio3PFxKjqSmmHFs3QS5PWzAZblNtVsY5Hea0hCG+hLo00QDmbW2J+tZflryeM 19x9SupovASCSdyaWHk/JQrR+BeJCdQ/dCUqR64Y+QaCHWc2nKQghXJiaVbwUxdjG9Nb Wbp5w5GHo0vDaiSAvfaL93diWFOh9inwlFPrxF5Ql6zoN9XNQM27+Mji/xFCqlSSL/iI tLpA== 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:dkim-signature; bh=aWAazNHBDVRAh2BONHNMgJ6UofOBNN4Fn8MZeeYeiu0=; b=mjlbIhOzETsO9vdfNKVOR01m8PL2y2HzyJULJ3aR28y5bY7VQHd1Bfkpc7LA7F04wS AeIjKTuSI4QMc5gLQn2uxO0uz4DOawUOL3J7vV8ilFUy0Zp0Cp1rzPYtzBWrMysGEsfQ /xxyqRHyXOJIbobDdTR7uNMwL34dPboSba9H9tmLyHLtmI2+vNtr7crFQGQG6Oi4BpG+ xKbkQe0BCiY3Ce9AJbFRW7f0tR4qqQ/D2RVjPOU7Fs2y11O5IcnX+KmUv+Q93jkJJ/2M ILvoTll5+UUcj5oXvm+2r9xtvbzgBFFm+8S2+u+68Pxsim3RaRqt+PTQpOBT8A6VUCob g4BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pkj0393X; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ju18-20020a17090798b200b008d606b1bbbcsi12213631ejc.311.2023.03.07.05.11.49; Tue, 07 Mar 2023 05:12:13 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=pkj0393X; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230117AbjCGNF2 (ORCPT + 99 others); Tue, 7 Mar 2023 08:05:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjCGNFO (ORCPT ); Tue, 7 Mar 2023 08:05:14 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16F7993E3 for ; Tue, 7 Mar 2023 05:04:47 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id z42so13016961ljq.13 for ; Tue, 07 Mar 2023 05:04:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678194285; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=aWAazNHBDVRAh2BONHNMgJ6UofOBNN4Fn8MZeeYeiu0=; b=pkj0393XpFRI99wm6saQTaQPPmMUBplQtNlf1h4PD/Zay63D1nQisoaVe95PSHJwpN ygvUWiwScJvDaV3Qe0PmHcXYpGaY9oYV0Gm/e28LQX7jl8pK/q4nQ3eM0pSpjMezHbPW H6PXcnX+D+M8x3lOF27cHdUdwokO7ggt0zBh2mB7Xil4V66wDg3blNn4emtr0iooL/U/ cK3lNt3eIE14tUXw57R31rqUhT9FgZCfEhpJX271vdEjMhNqiZT4zQqK6FxSEZClUIfI LtnKt4NpstuXMZxk+P7Knq9c5kOTBkMVtdk4GxBEmsHt3DSDrq+mDUcZRmfspMzrn5xO a1eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678194285; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aWAazNHBDVRAh2BONHNMgJ6UofOBNN4Fn8MZeeYeiu0=; b=76wuAsdnIeDKSDfxJllKQXfEsINTKZlmxq9UlFgavIh8VtRLIno9Xh7jvTrp3EJKSq ESaDbUP+M+uhya8ecqyDdq00ikCKNMdS64N1E4J9SaWTRVQnEYXXFhfP5EWiHKmOy+62 RcDY6NjEIdHyk8ncK3XH8FpDxrmC8ccwPiBlBEJUZlFdQlvVvQhF/ks42dEQGSqJdaQ7 /SREIDnrsn4SfE7OwrcldLI8MjHUK4h3foQ5eAp4108NZncnqniIbSK1xhiapf2lvIu7 mlUOUuRemxK3c4qRV9pklxWoudM4/Tu0Tkuuz6Hidb3RjKI5A2zC0lb1nJttqL6vpyqL zmpw== X-Gm-Message-State: AO0yUKVDQS/yvmU9xekoi5g59zMdGCpHFBZzC/Z8Eef4sGmKQbkw8vFA 2r2e72wd54MzUqboA3JHwB7jwQ== X-Received: by 2002:a05:651c:544:b0:298:4424:aea9 with SMTP id q4-20020a05651c054400b002984424aea9mr2870926ljp.21.1678194285179; Tue, 07 Mar 2023 05:04:45 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.219]) by smtp.gmail.com with ESMTPSA id w14-20020ac2598e000000b004caf992bba9sm2030548lfn.268.2023.03.07.05.04.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:04:44 -0800 (PST) From: Linus Walleij Subject: [PATCH v2 00/16] Mass convert GPIO IRQ chips to be immutable Date: Tue, 07 Mar 2023 14:04:42 +0100 Message-Id: <20230215-immutable-chips-v2-0-d6b0e3f2d991@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAGo2B2QC/3WOwQ6CMBBEf4X07Jp2FVFP/ofhUGChm0BLtkg0h H+3cPHk8U3mZWZRkYQpqnu2KKGZIwefAA+Zqp31HQE3iRVqPGk0OfAwvCZb9QS14zFCccEbIhZ Fa0glq7KRoBLra7d53cjh52yFUajl9z75LBM7jlOQz/5gNlv6f2w2oCE39toinm3e6EfP3ko4B ulUua7rF6W1ixPQAAAA To: Mun Yew Tham , Bartosz Golaszewski , Joel Stanley , Andrew Jeffery , Alban Bedel , Orson Zhai , Baolin Wang , Chunyan Zhang , Jay Fang , Daniel Palmer , Romain Perier , Santosh Shilimkar , Kevin Hilman , William Breathitt Gray Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-omap@vger.kernel.org, Linus Walleij , Marc Zyngier , Thomas Bogendoerfer , Janusz Krzysztofik , Tony Lindgren , Arnd Bergmann X-Mailer: b4 0.12.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759714720640310004?= X-GMAIL-MSGID: =?utf-8?q?1759714720640310004?= We are getting tired of these irq_chips not getting converted to be immutable, so I just take out the big hammer and fix some that I deem not too complex as best I can. I stopped after doing some, I will take another sweep at some point I guess. This is v6.4 material. The last two patches to pci-idio-* (patch 15 and 16) can be omitted if William's patches to convert this driver to regmap GPIO are merged first. Signed-off-by: Linus Walleij --- Changes in v2: - Rebased on v6.3-rc1 - Collected some test and ACK tags - Link to v1: https://lore.kernel.org/r/20230215-immutable-chips-v1-0-51a8f224a5d0@linaro.org --- Linus Walleij (16): gpio: altera: Convert to immutable irq_chip gpio: adnp: Convert to immutable irq_chip gpio: aspeed: Convert to immutable irq_chip gpio: aspeed-sgpio: Convert to immutable irq_chip gpio: ath79: Convert to immutable irq_chip gpio: cadence: Convert to immutable irq_chip gpio: hisi: Convert to immutable irq_chip gpio: hlwd: Convert to immutable irq_chip gpio: idt3243x: Convert to immutable irq_chip gpio: msc313: Convert to immutable irq_chip gpio: mlxbf2: Convert to immutable irq_chip gpio: max732x: Convert to immutable irq_chip gpio: omap: Drop irq_base gpio: omap: Convert to immutable irq_chip gpio: pci-idio-16: Convert to immutable irq_chip gpio: pcie-idio-24: Convert to immutable irq_chip drivers/gpio/gpio-adnp.c | 9 ++++- drivers/gpio/gpio-altera.c | 25 +++++++----- drivers/gpio/gpio-aspeed-sgpio.c | 44 +++++++++++++++++---- drivers/gpio/gpio-aspeed.c | 44 ++++++++++++++++++--- drivers/gpio/gpio-ath79.c | 8 +++- drivers/gpio/gpio-cadence.c | 10 +++-- drivers/gpio/gpio-hisi.c | 25 +++++++----- drivers/gpio/gpio-hlwd.c | 33 ++++++++++++---- drivers/gpio/gpio-idt3243x.c | 11 ++++-- drivers/gpio/gpio-max732x.c | 8 +++- drivers/gpio/gpio-mlxbf2.c | 32 ++++++++++++---- drivers/gpio/gpio-msc313.c | 26 +++++++++++-- drivers/gpio/gpio-omap.c | 83 ++++++++++++++++++++++------------------ drivers/gpio/gpio-pci-idio-16.c | 12 ++++-- drivers/gpio/gpio-pcie-idio-24.c | 12 ++++-- 15 files changed, 273 insertions(+), 109 deletions(-) --- base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6 change-id: 20230215-immutable-chips-762922277f1e Best regards,