Message ID | 20230721210042.21535-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:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp473689vqg; Fri, 21 Jul 2023 14:26:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlGR8+9yqYtQ/8PqLjTjJ9/o9jEFD32dX1NDDjB3FeIJ71Lb0gghDXzT6H6t3QUDciOR7D6L X-Received: by 2002:a17:906:538a:b0:988:9621:d85f with SMTP id g10-20020a170906538a00b009889621d85fmr2403850ejo.58.1689974773667; Fri, 21 Jul 2023 14:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689974773; cv=none; d=google.com; s=arc-20160816; b=HdcoMR5JJZg08UNuiXOOZ+rUEl0Ox2ZqnGEOcUO2DU9XcfhWeJxkWFcEXTP4i9QANc mOMnvTxD8UjY/WNtgSHVBMO/mIuchB4qfjaOq6oh5BKvKHDUdtbP/5ECjdMaiTQlSdTK aUWDoFX83ZTTIEtrqtxmu7nGBxcG1yrMUGliuucUxE1WGi2RekLUUeuZSFTSOexpYULY U6ZFi+4i2/tFCY3kxdieDS9O0AePM75eJ0cmxCo+1xqDakpt76yvo3XZAqMKPUgsSt1R hjp5Qr1LJSAaEi+ynP2Vcfd4GJaCtQcGaY7SitUIcuzmEM4IWiHDSEuNs1+mPbLbl6em m6Gg== 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=W01NZ7QUfBLqtcCZYG+SSUZHtF8Ve5d1BU4C4/esYac=; fh=/eTNpnw2EeTHjhijYum+630E555qx72OsXXBJXWDNVo=; b=YJY8cVQMM+AjzqpWYKFxj6x2amDIeBfNPVjm1P2RatGfor3ZHs6YLvispxpiIHuG+i MK/TTkLSUu49ahxwUYoSqQjKYU7qXuFUxNbxaZvgeHG5dvt1oD3v+s26TzoA5jlgAEKy nznZQRXwK7vqJmfKBma1ytd66a5rottCOswGqBg918nnziKQtvIxORo5RRmuVnKcDqYv n9dCNX/CzPgIjxcrKdVQOLBKJzuL18doUNke+pxpOo7QlHLhCnHJyF7WKDVBzssEgkLI SpRmmPmBuY5f0UsHnhaFVHiosWyWFF3PW+oIPgugFThwuvBQmmah/yg1ORHtNeNWfUby qLVQ== 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 i10-20020a1709061cca00b00992f30b2983si2452769ejh.849.2023.07.21.14.25.49; Fri, 21 Jul 2023 14:26:13 -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 S231189AbjGUVN6 (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Fri, 21 Jul 2023 17:13:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbjGUVNp (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Jul 2023 17:13:45 -0400 Received: from mx.skole.hr (mx2.hosting.skole.hr [161.53.165.186]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EFAC30E2; Fri, 21 Jul 2023 14:13:16 -0700 (PDT) Received: from mx2.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id 2EFD888092; Fri, 21 Jul 2023 23:06:11 +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 02/10] gpio: pxa: use dynamic allocation of base Date: Fri, 21 Jul 2023 22:37:44 +0200 Message-ID: <20230721210042.21535-3-duje.mihanovic@skole.hr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230721210042.21535-1-duje.mihanovic@skole.hr> References: <20230721210042.21535-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: 1772066988094500841 X-GMAIL-MSGID: 1772066988094500841 |
Series |
Initial Marvell PXA1908 support
|
|
Commit Message
Duje Mihanović
July 21, 2023, 8:37 p.m. UTC
Fixes the warning in dmesg that static allocation of the base is
deprecated.
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
---
drivers/gpio/gpio-pxa.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Fri, Jul 21, 2023 at 10:37:44PM +0200, Duje Mihanović wrote: > Fixes the warning in dmesg that static allocation of the base is > deprecated. Have you checked if this might regress on the older platforms where maybe drivers that are looking for the specific GPIO number? Please, elaborate the answer to the above in the commit message (in case you have done the research, otherwise do that first). The background of this request is the OMAP breakage in the previous cycle due to the very similar change. We don't want to repeat our mistakes.
diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c index a1630ed4b741..076ee6dff4d5 100644 --- a/drivers/gpio/gpio-pxa.c +++ b/drivers/gpio/gpio-pxa.c @@ -350,6 +350,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;