Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7343858rwr; Tue, 25 Apr 2023 11:27:59 -0700 (PDT) X-Google-Smtp-Source: AKy350bcF5t78a3WqlQQKf//gbX06o7hvXUMrf6R3PA+XelTkTR3EaX6ikywwhSHwp3yBJmzaVvz X-Received: by 2002:a17:902:c949:b0:1a6:6fe3:df9e with SMTP id i9-20020a170902c94900b001a66fe3df9emr22484207pla.47.1682447278658; Tue, 25 Apr 2023 11:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682447278; cv=none; d=google.com; s=arc-20160816; b=Bjo2131fNbf43A3D1go7cuNAG/RI7LEVSNeYzAL9+crzioknCUgCNqN2ki0G6vdso2 fiOKullCE4mZuPCfgqJCw/I1ZsOa8KQArJw3NJ28TgAU7nYrifBj3Rx8HDd9cSrumMqR W6qe5nZNVjbVOLxJUSMiKjYn/7WkY4loub5IoY3Kc2rN4U/FW92q6uXlhPqwNBU08ukv vN1h24xjQ67MRPM6GX6qZTPxs4O9fsqs7n3W9AritVEyB5IqYPDvVH/oDdZfitzQybmS rtDxdQknn9yZlG5DB4JkXPKtTe0QLr5huJS+SQf+cMabTsL6tQ63LZF7IILcV1hsP3mT r32w== 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=U2T+3q+meoJ1RyFUzTpHWdzOes64G2J8fo+n1ACnzfg=; b=vwUjy9BoGCMu7m7PGwDxnewlyXhZR66zAAsKwO36qhlcgzLbAAQNsNa8Y358wb7QN4 BwTrvhG6ihVGYYdwCGdZwAOgcYafsmgnfK6M8JJL7bnlOEvb852/3vAzwbtPueq7pOB6 GWbfVPFygPQksmWkQH/3ouvgLw/32+xL5fdY+XuhPEFyWTKRFBefCp8yq0+cIXNdSesY QokUR/1hLdjTaRKiCx6MnNpqxN5fYcOc4Hcm+dUO9oGgdFx3zFTR0QBboeAny/0oWsKd qKsAE42yn+ja6oDjHbiSo/9fpgc5bfKA/kMz18OnukR1+ukv/euDJ5eHNmnGWmB1oeLo OsKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=YNnQpd2I; 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 u1-20020a1709026e0100b001a6783cf26dsi12031626plk.255.2023.04.25.11.27.44; Tue, 25 Apr 2023 11:27:58 -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=YNnQpd2I; 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 S234445AbjDYSLb (ORCPT + 99 others); Tue, 25 Apr 2023 14:11:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjDYSLa (ORCPT ); Tue, 25 Apr 2023 14:11:30 -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 298B016188; Tue, 25 Apr 2023 11:11:26 -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=U2T+3q+meoJ1RyFUzTpHWdzOes64G2J8fo+n1ACnzfg=; b=YNnQpd2IZ5c1OxuBS050AUlVQx giWmA7A2zBpEj+iEP29GoSKMHucg0iut4a3F4hXIYG1m/F38rjOcmslgdKITcbV+6P4pOd1OBTuOr B+muuG3UaHemTQSZTz4j4dQUDif//LB+PYeKga6R6H5ofPOwXhd7MZcPWjq7hroCeAR6gcnIIe9lk ruqEZtsDnTSYr6IUo5DKACoH1EXjy+d6+NqtfrGld/AAP5iZKClK93y2zdlTCzvTguuDhEe4cs/+9 vLq2gorD9pq7jM4xMDRA3j1TccNY44i5+DwGRxcl/u4XIlOIV97eeO8K8M/uVDetd4bUvVMepEk6n 0XJtLXhQ==; Received: from p200300ccff17ff001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff17:ff00: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 1prN8I-0005Sf-Qi; Tue, 25 Apr 2023 20:11:19 +0200 Date: Tue, 25 Apr 2023 20:11:17 +0200 From: Andreas Kemnade To: Aaro Koskinen Cc: linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , Tony Lindgren , linux-kernel@vger.kernel.org Subject: Re: [BISECTED REGRESSION] OMAP1 GPIO breakage Message-ID: <20230425201117.457f224c@aktux> In-Reply-To: <20230425173241.GF444508@darkstar.musicnaut.iki.fi> References: <20230425173241.GF444508@darkstar.musicnaut.iki.fi> 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 Tue, 25 Apr 2023 20:32:41 +0300 Aaro Koskinen wrote: > Hi, > > It seems GPIOs on OMAP1 boards are somewhat broken after: > > commit 92bf78b33b0b463b00c6b0203b49aea845daecc8 > Author: Andreas Kemnade > Date: Fri Jan 13 21:59:22 2023 +0100 > > gpio: omap: use dynamic allocation of base > > E.g. on OSK1 the ethernet IRQ cannot (omap_gpio.0) no longer be requested: > > [ 0.277252] Error requesting gpio 0 for smc91x irq > > Also the tps65010 (still using static allocation) will now conflict: > > [ 0.400726] gpio gpiochip5: Static allocation of GPIO base is deprecated, use dynamic allocation. > [ 0.400848] gpio gpiochip5: (tps65010): GPIO integer space overlap, cannot add chip > [ 0.400970] gpiochip_add_data_with_key: GPIOs 208..214 (tps65010) failed to register, -16 > [ 0.401092] tps65010 i2c-tps65010: can't add gpiochip, err -16 > > I think this change should be reverted until the board files and other > gpiochips are fixed accordingly. > well, then just fix that tps65010 thing. that change is itself a regression fix for exactly the same kind of error. twl4030 gpio registration conflicts with omap gpio registration. Probably in former times, the dynamic allocation always started at 512, so no conflicts between static and dynamic. So I see two options: either fix the remaining static allocation or fix allocation so there are no overlaps between static and dynamic. Regards, Andreas