Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp410933rwr; Wed, 26 Apr 2023 00:41:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7DngixN3toxKB1pS+EIl31iUgDV7pohrGru90nRj0BOCkq+hEg0AAM+JKbevYyN9GcjiEI X-Received: by 2002:a17:902:e550:b0:1a9:7dc2:9427 with SMTP id n16-20020a170902e55000b001a97dc29427mr1983068plf.21.1682494907910; Wed, 26 Apr 2023 00:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682494907; cv=none; d=google.com; s=arc-20160816; b=caYeJ/QrYNsxOqUhP7i5lpSi9h0HZqm0gMYCj0qMZOHirzjzo4Bypl34EzCZ5PIj+Z WQRn9vJciMrDTTgyHW4hjPQItJ/bEgqhC6zNDqT6pFOc4B0uR1CiogefMdQWiHaeIWU6 IiDqB8JdxYky+obMbm9AQiQ1H9wZwEbjpEernd/ZMzZcn2H+l3wOYKRw9f7qTxNRlGRa aCZ2UQmrWg3bzth6F0OGzyGTy5cf5c2aXc6Y9TINxhxy6h549J3Rj9JlWp5QCrRzrtXN OG2yoJxndnh2ZnED40PSwEIKmfwj7Ry84U3sqAvEhAaBw2jQQwncPs/SY2MJY86woFet fzSA== 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=PCRmkCmow1uEMGeL57btO0h4Rmd+vf5ns0y/BbWjTBI=; b=FIPdataPx1nByVNNOMu6Rhnhe6mTgLvqIb/ZU1SLQY5vaU/oSm8dbgNX6ag1vCHObh l4dR4VLbNUuWaBGL2JmuQHlxccAxybi9ANUjTrTsh1EMn9GpOXntg6HF+rlzpld5PfVa u6Xz9U8Asd+2en62LFs9EtsdnHakU0HYfFVJOAeJkDvfyoxE/ZA0xFzdWZxLaFgTybM4 vtkl+LckOJWMOCqg1vejGBj9XPRi16DxShtSkYo2uPb4tPHy59QQEGMryHc12nkVVhW+ Tik2y9gPEI/qxqatHDTSCYxrgT8JqmF22+6uFJEt0XVchU+XDfT4v6jAVX6jcNpL/wLO c1dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=lWZxauUD; 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 w9-20020a1709026f0900b001a812c741d1si15155740plk.234.2023.04.26.00.41.36; Wed, 26 Apr 2023 00:41: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=lWZxauUD; 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 S239648AbjDZHjc (ORCPT + 99 others); Wed, 26 Apr 2023 03:39:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239381AbjDZHj2 (ORCPT ); Wed, 26 Apr 2023 03:39:28 -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 139DC30F1; Wed, 26 Apr 2023 00:39:27 -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=PCRmkCmow1uEMGeL57btO0h4Rmd+vf5ns0y/BbWjTBI=; b=lWZxauUDvd1nVRFVftz0jJ83W6 i0/Z7hxxZz8JwAArPRYDJDODs0fIcak71XzX73MTR77A2Yhi5jPmOqRZjcLhlERP21VVO0UTjXzgD 8vRSrWFgR6OrMUduIHWO9QtCGoqavmdu902smnaM/PiyEwvswcIAGMDiQ26QSmCik68hzJR6G6aua eQUagi/0vGvWT0P7IWAYVaZhKA84OfL6kZjZCSBI6QR/KbPydUJtgOFY9SOYjCLqca+PlnF61e/7w YIX2WuC2pTbVIS3ci2rRU93xCaNNlFij8Y0gjxcsJ31HsJQyR0H0zi4i1r2z0Xrx3B88TYwgQe5L2 Su9siKFg==; 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 1prZkI-0006pi-7L; Wed, 26 Apr 2023 09:39:22 +0200 Date: Wed, 26 Apr 2023 09:39:20 +0200 From: Andreas Kemnade To: Tony Lindgren Cc: 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: <20230426093920.3e9b5c61@aktux> In-Reply-To: <20230426071910.GE14287@atomide.com> 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> 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 Hi, On Wed, 26 Apr 2023 10:19:10 +0300 Tony Lindgren wrote: > Hi, > > * 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: > > > > > Which commit introduced that regression? Also, the changelog mentions > > > > > it happens only with "unusual" probe order. Now, all the ordinary cases > > > > > for OMAP1 are broken. > > > > > > > > > did not bisect that to an exact commit. > > > > Unusual probe order: on the device where I tested it, > > > > I did not see a completely successful probe. > > > > > > If you cannot point out a working past commit, there was no regression. If > > > you fix something that hasn't worked before or has been long time broken, > > > it must not cause breakage to other current users. > > > > > Well, I did not take the time for a bisect. As we need a less aggressive > > fix, it seems to be worth doing it. > > > > > > > And it's not just that tps65010 thing. E.g. 770 fails to boot as well > > > > > and it doesn't use it; and reverting 92bf78b33b0b fixes that one as > > > > > well. AFAIK it's because all the gpio_request()s in OMAP1 board files > > > > > stopped now working. > > > > > > > > > so we break every non-devicetree user of omap-gpio? > > > > > > It seems so. > > > > > or maybe an if (not_using_devicetree()) > > Not sure what the best way to fix this might be, adding Linus W to Cc too. > Maybe using gpio line names in the legacy platform data instead of numbers? > > Seems that we should just revert this patch for now and try again after > the issues have been fixed. > 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. Regards, Andreas