From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26DA6E75433 for ; Tue, 3 Oct 2023 08:55:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239441AbjJCIzI (ORCPT ); Tue, 3 Oct 2023 04:55:08 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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