Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1823239rdb; Tue, 3 Oct 2023 01:55:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMGkqMSuJCfIszIrZUZ4BRYMwENXadGXU4q9aMltbF86Gs4lIDZvQtqs4q6Cmri9amA7XH X-Received: by 2002:a05:6808:9a7:b0:3ab:83fe:e18f with SMTP id e7-20020a05680809a700b003ab83fee18fmr13524909oig.35.1696323317308; Tue, 03 Oct 2023 01:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696323317; cv=none; d=google.com; s=arc-20160816; b=lPoVJyQLmWErllVyyt3biXFMx13WOfTcRbDphI7eCliLIKXToUVeuSpGcAG1ZkhZOW XdxRNildT4tMMZ2NHCes1L9wGsh8FQsCdQ471S4KiEdh5aG+jaKDl9k+Isw/0+oyiSdS /VrCIl0qiaSo4rEEBwQRQriF55cOT6UqPbptIn38G2q2+mvpOtaUZRO/69Wp2zAPRCHl zxocLosz3iJQrfjrFFyca+U2IpkhkIx1x08mueeGY+T4mHe+m+h1K7tupopn4Ke3fAig J0SvdVUY6iyibPU5MdgfskwH9u4oKT/KtYmBFSW82K5uWecWh54bUYsmcClmywvY87Ff bG6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ioIUoxh0ykgbksiR5qHMIq6hWQ5CTZ50RaM0lBFIUNk=; fh=zwd5DENX1+an/kifRiNGLsFs6fSY/WMkPftdGN+NhNM=; b=j3dv3qmyvh/pzdbiIUiW569IXNk8/ySDUR9Yiz6YQrKgh+7jIP8VIRpEWTR9XgHDKa l7OsA2ihU72eJVL4KsvoP29FX4YFo1WIFklBcQAllobND/zB1pNooOclOMqk3Ib8WSLB caRS+V1t/h1tE+ga7n7jPKDSVmZ4p0WI2Db3LSOJzb/yC9D7yU91DgIAK6lRkBaCRrfh Mr1LwrLJXFCFkbEJyB/UUqzlkw4m7Fv8L6MTMxxbw1eozvKe9CBDDzRD1b+KvvYkdpd5 XQf7HF3/4LDrDoYkF7gmpnvT11iJsZI0gqMBN2Q5x8FF5L89ksh9CHRoYD0YkVLapygZ f6Fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id c5-20020a6566c5000000b00565322ef4f1si991695pgw.348.2023.10.03.01.55.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 01:55:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 31D6F80FCE2E; Tue, 3 Oct 2023 01:55:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239293AbjJCIzG (ORCPT + 99 others); Tue, 3 Oct 2023 04:55:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbjJCIzF (ORCPT ); Tue, 3 Oct 2023 04:55:05 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6A2EA9; Tue, 3 Oct 2023 01:55:02 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="367874811" X-IronPort-AV: E=Sophos;i="6.03,196,1694761200"; d="scan'208";a="367874811" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 01:55:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="780231481" X-IronPort-AV: E=Sophos;i="6.03,196,1694761200"; d="scan'208";a="780231481" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 01:54:59 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC1) (envelope-from ) id 1qnbB9-00000002REe-3gas; Tue, 03 Oct 2023 11:54:55 +0300 Date: Tue, 3 Oct 2023 11:54:55 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , Joel Stanley , Andrew Jeffery , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH] gpio: aspeed: fix the GPIO number passed to pinctrl_gpio_set_config() Message-ID: References: <20231003073926.10771-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231003073926.10771-1-brgl@bgdev.pl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 03 Oct 2023 01:55:15 -0700 (PDT) On Tue, Oct 03, 2023 at 09:39:26AM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > pinctrl_gpio_set_config() expects the GPIO number from the global GPIO > numberspace, not the controller-relative offset, which needs to be added > to the chip base. Right, because it has no clue what chip this offset is related to. Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko