From patchwork Thu Mar 9 07:45:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 6335 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp157300wrd; Wed, 8 Mar 2023 23:57:40 -0800 (PST) X-Google-Smtp-Source: AK7set+mOCadtxHXfIux2xhiezFL1s7CinSndVh3CDGMpHHFyiMWV6OtW3NvMCj+S8bu2qUof5+Q X-Received: by 2002:a05:6a20:3d05:b0:cc:5917:c4e3 with SMTP id y5-20020a056a203d0500b000cc5917c4e3mr25550847pzi.48.1678348660019; Wed, 08 Mar 2023 23:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678348660; cv=none; d=google.com; s=arc-20160816; b=P8APH7B6yArItVewQQrA99n6x83sSYszx4ElmWAwgmBWNOP22M2xEPVPW7f2a+9qNK xcUmOtqja0UbOyz2QWZUEnkHFPM9y52eznlMS+ChLNkl4tVSXk0bl6pGUoQDIZT8WMcJ d5G9BXk7bVmgg5/v2dyR3pHEQFA9dJ1gFIeAySQJ8L9dS7CGk+YYGQVJVJvm75r1Jtzy /0Nm6fTw1gW5dMv74hFnQErZB4uUueLPgg5Q6S1XtyBINtaSZx0rqpEL1VNgkRUL/7Tz Ce/TBaJpNgSBcUrU98YlIV/GRcH/+BZDCQfasr2HDSJU2qPGPkgPcHicV43is4lMoig9 pOOw== 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=h7u9Q7fUnpppRJq2RShEjTYzc0gmpoEcEwMnKD4I77E=; b=zRS/xKZ/QuuZV3rSsTTfuA3BdpS2ddMI4bCyP6SUKk2oN20hFCODQ+33N+XxZV6e3a helgoBCrjgMRVzaRPYPdTscyjq5f3dkX2rhW5xpN5xwBZfXat1nr2t80NYqT0CEIvfbZ 8slL0ASQ9rHqWND3sGlcQusHw8snSAC7oLh5ifytF78CM6X/qKjMTR2blz2VCr5fqUvj KnU26h/F4Qz1ukg+2Fwy6tAQdduGHgDh1he6mnXXN5OaJ5EFraoFU6uD9A0EJvgYtCyd jlDIZBe5Gd5c6MQBtcWf6TobP3YVWfnfOtdiKIXnvqenjqE5P99g9Reu/mfLc0o4fhUj j9iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZOGUmF5l; 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 w15-20020a63474f000000b00502e1e0a480si16904726pgk.279.2023.03.08.23.57.27; Wed, 08 Mar 2023 23:57:39 -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=ZOGUmF5l; 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 S230128AbjCIHqJ (ORCPT + 99 others); Thu, 9 Mar 2023 02:46:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230037AbjCIHp6 (ORCPT ); Thu, 9 Mar 2023 02:45:58 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D62BBD4634 for ; Wed, 8 Mar 2023 23:45:56 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id r27so1134550lfe.10 for ; Wed, 08 Mar 2023 23:45:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678347955; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=h7u9Q7fUnpppRJq2RShEjTYzc0gmpoEcEwMnKD4I77E=; b=ZOGUmF5lPyvnwoaxcsnaV5kFREvx9c67R8Xt2D4aG2OqbpjoSIFIgfjqkeKd2S6usT l8DXLzEVqebWIrKLzoDS9E38ZHi4X+ic8s+682m0ifDHn+tHimOpvXVudCZanN7m+C+H vBk53hkGLAEoK0bLibgNAgem9FZPvK8njQ1BlmZ8qRGstSAB9t+Hyw/r4nQZlcRpAMjF PXeWttVBiHP1Y35YAuxdi7JNtR0VBHVw3F1xrsIYJLgX49CQQGFroE+TpqvMnr+iF4Lz i7YmgZn762YP4GfeUrARK5T1rbAouopqXXUl7MA9C9BOjxvIhXvKgBB84+ifrXOof8PX XWnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678347955; 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=h7u9Q7fUnpppRJq2RShEjTYzc0gmpoEcEwMnKD4I77E=; b=Z4KvLCLz8Xpbbo4eMHcSdaQGw5AKbYMhp4zT9F89xovJnIuBcimMS775tU5KsOUJ8D a8x/V3umjh5Oc8bEgBPkrMeQpyvXVpRRSf4IanB3Kr6UrhBq0XYu5+8L9UnS/YEUteU4 4oqMjbQAwIwrSHrRnnZRIKnZoGD985KlZ0fyYwjoeBMLGfLt9y3Em5YngecG8veva25N r1Vxjpkblo4CHfDcS1N0Jn7XpFkEoAZN+3RU0pktc8FgU9ViebyYuNQkWD6GFxPjJ71j 7opcVBouqFuZWuY/oGSkH+4wqwYGNsNPJAUPb3BXEDYwwu+kbtKIeHCjL7WKjkyjrlLg FI3w== X-Gm-Message-State: AO0yUKW9sAJM3Ll6yGOUa402eabKJj/n9mLCZkJsfPf9Cavl/zHNdQk3 q9xvy26NiNwg/eK39H5DQJthJQ== X-Received: by 2002:ac2:5dfa:0:b0:4b6:e405:1027 with SMTP id z26-20020ac25dfa000000b004b6e4051027mr6046573lfq.14.1678347955140; Wed, 08 Mar 2023 23:45:55 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.219]) by smtp.gmail.com with ESMTPSA id a6-20020a056512020600b004bb766e01a4sm2568972lfo.245.2023.03.08.23.45.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 23:45:54 -0800 (PST) From: Linus Walleij Subject: [PATCH v3 00/17] Mass convert GPIO IRQ chips to be immutable Date: Thu, 09 Mar 2023 08:45:48 +0100 Message-Id: <20230215-immutable-chips-v3-0-972542092a77@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAK2OCWQC/4WOQQ6CMBBFr0K6tqYdBMSV9zAuCp3SSaAlLRIN4 e4WNsaFcfl/5r0/C4sYCCO7ZAsLOFMk71LIDxlrrXIdctIpMxCQC5AFp2F4TKrpkbeWxsirEmo AqCojkSWqURF5E5Rr7cZ1I/kPsx2MAQ0998nbPWVLcfLhtX8wy639PTZLLngh1dkAnFShxbUnp 4I/+tCxTTbDHwEkgS4bgbkBXdfyS7Cu6xs9SJNyEQEAAA== 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 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?1759876124326507032?= X-GMAIL-MSGID: =?utf-8?q?1759876124326507032?= 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 v3: - Deleted the irq_chip->name assignment in the Aspeed driver - Fold in a patch from Joel to make aspeed IRQs compulsory - Link to v2: https://lore.kernel.org/r/20230215-immutable-chips-v2-0-d6b0e3f2d991@linaro.org 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 --- Joel Stanley (1): gpio: aspeed: Always register the irqchip 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 | 82 ++++++++++++++++++++++++++------------- 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, 290 insertions(+), 130 deletions(-) --- base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6 change-id: 20230215-immutable-chips-762922277f1e Best regards,