Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3586449rwb; Mon, 16 Jan 2023 09:55:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXvbjYopezsgpUQQDe7qOtkMV4ijV+6yfaZotPMx1fZNdOJOmGsPsFoe5N1YYDaCljm5TjG/ X-Received: by 2002:a17:907:cc1d:b0:871:d59d:4f54 with SMTP id uo29-20020a170907cc1d00b00871d59d4f54mr1755407ejc.27.1673891737875; Mon, 16 Jan 2023 09:55:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673891737; cv=none; d=google.com; s=arc-20160816; b=ibrRJ3/L90Qbxjv4YNWakYHO6qHd067aPARWx0OuMRcrtvKEQWuOne8hgvVxEyXuyD 4AxaPwj6yIMx2ARaJBgQnfDklR4j+SCufCAEohQCjPl8UlBDHBPPHSmUp6k9zQvXKm9o HFTWI0U+gPT47WSgdiypfFrcbJLQXnY4e8XVqenN5jZq4G2wP7OqW3Y86bSi4qOI99aq Hl0sqgd46vmGzu3Ut8Vs2JbcOWdK571oaF0V3DlkK7gJ6pNEfmMsCd9eRmDB1Y4PAs1v PDlfcLHRZ6QOco/8evde5AX9wWSamBrdxFRicqmlA1/A43phj2CMKoTMX7sSgZ12R7Ia 7cuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=dsvYPLyqlxIcQPxT2kgA3WNREoFaW5T0v1w+Mvi2rjM=; b=Wa9M4jw73ti1bBrV6UD7eRVhAfM0f9SrTA+YkzRhGZfSTsIKDr6IrahGfp8gieErSZ p7fORS3tgkPNr/+aNdZGvdLw/X3WKF6ILjseoZfgbQqSAA90ubrv6FdBXgPpZud/zisI cO9q+TA36m6S9zu8D/zHefr1M8T3sxbLd8p9wdsBjUS18shj0TBEngMEmFoj0B4KWGyw SpmB/BI8BnVU2cXSkU3PLTB6cbPco9FMY91rFe7SdvojmGAVwDtSvV+93BY4SgV7Dwv1 iuYAFP8B0oqWMJyVsXapBba96fWN3v31ZuibNWw0kWuF+t/AF6UTDVkJ20acbTvwTPIl i2Ow== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa9-20020a170907868900b007bea4cb61d6si6343120ejc.424.2023.01.16.09.55.25; Mon, 16 Jan 2023 09:55:37 -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; 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 S234971AbjAPRhv (ORCPT + 50 others); Mon, 16 Jan 2023 12:37:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235019AbjAPRhO (ORCPT ); Mon, 16 Jan 2023 12:37:14 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 491A349019; Mon, 16 Jan 2023 09:14:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 8CCDC8108; Mon, 16 Jan 2023 17:14:03 +0000 (UTC) Date: Mon, 16 Jan 2023 19:14:02 +0200 From: Tony Lindgren To: Bartosz Golaszewski Cc: Andreas Kemnade , grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, linus.walleij@linaro.org, linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] gpio: omap: use dynamic allocation of base Message-ID: References: <20230113205922.2312951-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 * Bartosz Golaszewski [230116 08:38]: > On Fri, Jan 13, 2023 at 9:59 PM Andreas Kemnade wrote: > > diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c > > index 80ddc43fd875..f5f3d4b22452 100644 > > --- a/drivers/gpio/gpio-omap.c > > +++ b/drivers/gpio/gpio-omap.c > > @@ -1020,7 +1020,7 @@ static int omap_gpio_chip_init(struct gpio_bank *bank, struct irq_chip *irqc, > > if (!label) > > return -ENOMEM; > > bank->chip.label = label; > > - bank->chip.base = gpio; > > + bank->chip.base = -1; > > } > > bank->chip.ngpio = bank->width; > > > > -- > > 2.30.2 > > > > This could potentially break some legacy user-space programs using > sysfs but whatever, let's apply it and see if anyone complains. Worth a try for sure, fingers crossed. I guess /sys/class/gpio will break at least. Regards, Tony