Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1211835rwr; Wed, 26 Apr 2023 11:30:47 -0700 (PDT) X-Google-Smtp-Source: AKy350b7/bVGIO54qvXcUOIn680DgNBu6H1l44UAC4Zt8XEuqHN47j2odPuwhNgjFLSYHe3k5XfG X-Received: by 2002:a17:90b:1d0a:b0:247:4f32:d108 with SMTP id on10-20020a17090b1d0a00b002474f32d108mr20819637pjb.13.1682533847242; Wed, 26 Apr 2023 11:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682533847; cv=none; d=google.com; s=arc-20160816; b=DuS/33+RPqDPTg6MYzAN7KGzrwU34O47N4ugVJBGJFoShi9CnoXVJ1t1HhMwCvHzEy Vxvd1ZpJ0jkX36jVDDNCM5Z7roG+c0q8vHALq1j7EY1yXou0bYBQpSF+fq5fP3BYyxiP W9f5zIU0T2oVT7WPBv5zmC8zOLRpyybfjUYagZlb5+TLCvP6l3iPLQbAp6881/I7ehh9 m9hqrbDsI3pdUksPjxolXLIucujiFHY3q27Pt2LxCI2bztVLDMqGRZgVk/5tQRRLJmul PWKVrpiN6Ioczu6Cq8f55GXdyfyAnLacKRHhXJJjszzSz8y54ky2y95IRs/AdAEtFhyC vCgA== 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:subject:cc:to:from:date :dkim-signature; bh=kFhUT9deVkPno3Q0meiZoeVjv8fm14gpU8+QGcR0u6U=; b=hkb6L/RtfjPpb8fHKpHYeE/VFXiHh1yhP0tG5F88elQipb725dsVcuJ5lpK1XGrrKA mPFsuEdDW56MOrI3uOHsYJmRuguF7niDf9fADX50P2eRYak4MBFB3eFF+njxvY8cdAhd uNm2NPYAtccMc2/HDDsKb35Qy33zkC/I05wcAkjyQ2k6VjjlmcUeOY7O/DRqpzrT//ct vf2XDIsrUJ24rwz1FtSvMavQD+RRyeABVYAQBP5LK7Y8IAB3o5RFUadQeNLoAfpv5QbT vTL+Nl26ahbH0+QNWQvPtAh/CX4EvV51MneElQQY4aLJBnyW+gug+hIGsGCZzF6zaVTd kxVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=sI7ZBvMP; 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 nu10-20020a17090b1b0a00b0023747b24923si17978466pjb.53.2023.04.26.11.30.34; Wed, 26 Apr 2023 11:30:47 -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; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=sI7ZBvMP; 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 S233831AbjDZS31 (ORCPT + 99 others); Wed, 26 Apr 2023 14:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230491AbjDZS3Z (ORCPT ); Wed, 26 Apr 2023 14:29:25 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CDA74495; Wed, 26 Apr 2023 11:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kFhUT9deVkPno3Q0meiZoeVjv8fm14gpU8+QGcR0u6U=; b=sI7ZBvMPEapatwzcxQora07MzP n+zAT4y8oJMUT9gn56vrTOpOidYi+RTEtb3RQNJfhQkoe8lhLSjvE4Vaphsz/C5wnXcHxSGfFHVkJ 6QE+CNg/2FR27Cx+ZJdVIgVCBKQcGGLKG9DOjet7p3S9KpPevzMJPPVEX+Gr9e+QDmzQ3is8zxToe R3FrdrA3zxL0X424lRT+RRY2NehdBE+lbluJDjjkyHWt32sNt4+TQdb7m1YcL+F1G2gZiJv1mwG5J cFvrXGJZMHhaYARcEXUAteW83ekIc0UPQvsXdhfxON8isvtLVDUI0Pw9xbOzWQm3aAK5fPDzgtsic Ol38XKuQ==; Received: from p200300ccff09c2001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff09:c200:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1prjt8-0007og-2C; Wed, 26 Apr 2023 20:29:10 +0200 Date: Wed, 26 Apr 2023 20:29:08 +0200 From: Andreas Kemnade To: andy.shevchenko@gmail.com Cc: Tony Lindgren , Aaro Koskinen , linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , linux-kernel@vger.kernel.org, Linus Walleij Subject: Re: [BISECTED REGRESSION] OMAP1 GPIO breakage Message-ID: <20230426202908.17b55974@aktux> In-Reply-To: References: <20230425173241.GF444508@darkstar.musicnaut.iki.fi> <20230425201117.457f224c@aktux> <20230425183857.GG444508@darkstar.musicnaut.iki.fi> <20230425212040.5a4d5b09@aktux> <20230425193637.GH444508@darkstar.musicnaut.iki.fi> <20230425215848.247a936a@aktux> <20230426071910.GE14287@atomide.com> <20230426093920.3e9b5c61@aktux> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.24; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,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 On Wed, 26 Apr 2023 13:52:51 +0300 andy.shevchenko@gmail.com wrote: > Wed, Apr 26, 2023 at 09:39:20AM +0200, Andreas Kemnade kirjoitti: > > On Wed, 26 Apr 2023 10:19:10 +0300 > > Tony Lindgren wrote: > > > * Andreas Kemnade [230425 19:58]: > > > > On Tue, 25 Apr 2023 22:36:37 +0300 > > > > Aaro Koskinen wrote: > > > > > On Tue, Apr 25, 2023 at 09:20:40PM +0200, Andreas Kemnade wrote: > > > > > > Aaro Koskinen wrote: > > ... [...] > > I think the reason for the patch (besides of cleaning up warnings) is that > > dynamic allocation seems to start at 512, static at zero. > > If both are there, like registering twl_gpio between omap gpiochip 4 and 5, > > dynamic allocation seems just to start after the last static number, > > calling for trouble. > > > > If dynamic alloc would just start at 512 in that case too, no problem would appear. > > As said I have not bisected it to an exact commit yet. > > So if we need to move backward, we should IMHO first fix that allocation thing. > > I agree. > > As PoC can the reported add the following lines > > if (gdev->base < GPIO_DYNAMIC_BASE) > continue; > > after https://elixir.bootlin.com/linux/latest/source/drivers/gpio/gpiolib.c#L190 > and test your idea? > > yes, looking at git blame 7b61212f2a07a ("gpiolib: Get rid of ARCH_NR_GPIOS") would probably have been the correct Fixes-tag for for that patch (and will be for the new approach to fix it) and its intention was exactly what we are talking about. I will test. Regards, Andreas