Message ID | 20230727162909.6031-3-duje.mihanovic@skole.hr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1230115vqo; Thu, 27 Jul 2023 09:50:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlFUgybUH9wawn6oAinCh1jXmwg/AhMxXfaG+uKielx8+vGkRbASaDKCV6uslayxh3KJfIJZ X-Received: by 2002:a05:6402:1e94:b0:51d:b184:efd with SMTP id f20-20020a0564021e9400b0051db1840efdmr3445343edf.20.1690476625845; Thu, 27 Jul 2023 09:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690476625; cv=none; d=google.com; s=arc-20160816; b=FMewdh9vIh4AFr0lq15aBBk7Xw1sJU3ZJyNQEnYLNyQbfdltA8q4dsxQuMPnJxg7hh 7F5H+srhyyG2JnzaVdVVi78kjLxkE8jaP7mE8Eg98w6B3799yZ40U2FyOkoiz6Bkx0x1 F9qunHI4Uxxt394kTX4nAw0gDa81jEA5UCjJmIcRWsXorvzBev7BsL8/ehJscMWdMsct ZTTpWxICLpsnYDJIRCjNoRx68lZRnbH/JE45iAJelacPfxCWrthAwR/Ut2Gkz2qE8gxn +IZnJDfjAG/C9voaPk/o8iEX/RtlFqXbKhsysaKYp8K/QEmZRqM8Fm3y9cp6YMwHGNoW F5PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hp7bjW5Le9yJA1RWpau0sgPSb8QbhPRC8HlBiV85BC8=; fh=/eTNpnw2EeTHjhijYum+630E555qx72OsXXBJXWDNVo=; b=PTol+D9zV3w4P6aalBmgluGuBY+OBoZ6lK8e/Q+2xhR70E3ePrxPWcuIehmBjJRFLI Cwh4SM9OL6GDP8GjZ89ZyQV0A2gljlkvUJtMuNSFj7PbRuXAhMPHCxutFQsgxEH4cMsa tBRv/8Xf478mBhVPn5rIe+vHcxlEy76pkFM37XlgVRYxMtsZ3sJxNF7AtqhEMXBOacVM q06jFZ+CWSEzj7e+zrOsgnE452hagjAFKx5UGeUBdb8UeDDoTo+71rQE3wfXDf4mnlgE hjRZdjnQz5NKI0eiyRSxsmULBZtwYs6UlAtR6zZLp7136m+53FNfi24CYyH4YWUYkosS sJsA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020aa7d349000000b0051da389c522si1135909edr.610.2023.07.27.09.50.01; Thu, 27 Jul 2023 09:50:25 -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 S234385AbjG0QaU (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Thu, 27 Jul 2023 12:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231753AbjG0QaQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Jul 2023 12:30:16 -0400 Received: from mx.skole.hr (mx2.hosting.skole.hr [161.53.165.186]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 204A226AB; Thu, 27 Jul 2023 09:30:13 -0700 (PDT) Received: from mx2.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id 4D8F8838C5; Thu, 27 Jul 2023 18:30:12 +0200 (CEST) From: =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr> To: Robert Jarzmik <robert.jarzmik@free.fr>, Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, Andy Shevchenko <andy@kernel.org>, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, afaerber@suse.com, =?utf-8?q?Duje_Mihanovi=C4=87?= <duje.mihanovic@skole.hr> Subject: [PATCH v2 2/9] gpio: pxa: use dynamic allocation of base Date: Thu, 27 Jul 2023 18:29:00 +0200 Message-ID: <20230727162909.6031-3-duje.mihanovic@skole.hr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727162909.6031-1-duje.mihanovic@skole.hr> References: <20230727162909.6031-1-duje.mihanovic@skole.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772593218464891750 X-GMAIL-MSGID: 1772593218464891750 |
Series |
Initial Marvell PXA1908 support
|
|
Commit Message
Duje Mihanović
July 27, 2023, 4:29 p.m. UTC
Fixes the warning in dmesg that static allocation of the base is
deprecated.
This will break some older PXA boards (such as Spitz) as they still
seem to rely on fixed GPIO numbers with gpio_request and such.
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
---
drivers/gpio/gpio-pxa.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Thu, Jul 27, 2023 at 06:29:00PM +0200, Duje Mihanović wrote: > Fixes the warning in dmesg that static allocation of the base is > deprecated. Right. > This will break some older PXA boards (such as Spitz) as they still > seem to rely on fixed GPIO numbers with gpio_request and such. So...? Why do you think this patch can be accepted?
On Thursday, July 27, 2023 6:40:24 PM CEST Andy Shevchenko wrote: > > This will break some older PXA boards (such as Spitz) as they still > > seem to rely on fixed GPIO numbers with gpio_request and such. > > So...? Why do you think this patch can be accepted? Understandable, I'll drop it. Regards, Duje
On Sun, Jul 30, 2023 at 11:18 PM Duje Mihanović <duje.mihanovic@skole.hr> wrote: > On Thursday, July 27, 2023 6:40:24 PM CEST Andy Shevchenko wrote: > > > This will break some older PXA boards (such as Spitz) as they still > > > seem to rely on fixed GPIO numbers with gpio_request and such. > > > > So...? Why do you think this patch can be accepted? > > Understandable, I'll drop it. Or you can fix the real issue! This is what I had to do to fix the OMAP, all the way down: 8e0285ab95a9 ARM/musb: omap2: Remove global GPIO numbers from TUSB6010 078dc5194c0a ARM: omap2: Rewrite WLAN quirk to use GPIO descriptors 94075d16beef ARM: omap2: Get USB hub reset GPIO from descriptor d5f4fa60d63a ARM/gpio: Push OMAP2 quirk down into TWL4030 driver c729baa86042 ARM: omap1: Exorcise the legacy GPIO header df89de979f0e ARM: omap1: Make serial wakeup GPIOs use descriptors 084b6f216778 ARM: omap1: Fix up the Nokia 770 board device IRQs e519f0bb64ef ARM/mmc: Convert old mmci-omap to GPIO descriptors 767d83361aaa Input: ads7846 - Convert to use software nodes 480c82daa3e4 ARM: omap1: Remove reliance on GPIO numbers from SX1 4c40db6249ff ARM: omap1: Remove reliance on GPIO numbers from PalmTE fa1ae0cd897b ARM: omap1: Drop header on AMS Delta c32c81f3dbdf ARM/mfd/gpio: Fixup TPS65010 regression on OMAP1 OSK1 a47137a5134b mfd/omap1: htc-i2cpld: Convert to a pure GPIO driver 6efac0173cd1 ARM: OMAP1: OSK: fix ohci-omap breakage 45c5775460f3 usb: ohci-omap: Fix descriptor conversion f3ef38160e3d usb: isp1301-omap: Convert to use GPIO descriptors 15d157e87443 usb: ohci-omap: Convert to use GPIO descriptors e63201f19438 mmc: omap_hsmmc: Delete platform data GPIO CD and WP And maybe some more. Yeah it's tough, but it can be done! Yours, Linus Walleij
On Mon, Aug 7, 2023 at 4:31 PM Linus Walleij <linus.walleij@linaro.org> wrote: > On Sun, Jul 30, 2023 at 11:18 PM Duje Mihanović <duje.mihanovic@skole.hr> wrote: ... > And maybe some more. Yeah it's tough, but it can be done! And I will add "earlier started less effort it requires".
On Monday, August 7, 2023 3:31:19 PM CEST Linus Walleij wrote: > On Sun, Jul 30, 2023 at 11:18 PM Duje Mihanović <duje.mihanovic@skole.hr> wrote: > > Understandable, I'll drop it. > > Or you can fix the real issue! This is what I had to do to fix the > OMAP, all the way down: ... > And maybe some more. Yeah it's tough, but it can be done! I could certainly look into it. Regards, Duje
diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c index d92650aecb06..b48d142b736d 100644 --- a/drivers/gpio/gpio-pxa.c +++ b/drivers/gpio/gpio-pxa.c @@ -351,6 +351,7 @@ static int pxa_init_gpio_chip(struct pxa_gpio_chip *pchip, int ngpio, void __iom pchip->chip.parent = pchip->dev; pchip->chip.label = "gpio-pxa"; + pchip->chip.base = -1; pchip->chip.direction_input = pxa_gpio_direction_input; pchip->chip.direction_output = pxa_gpio_direction_output; pchip->chip.get = pxa_gpio_get;