From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0906606A322 for ; Thu, 3 Dec 2026 10:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=UyjjnGEU; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Ayo1ya0w DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=dmSvwIdYRQETjazy0b42C6BItAi3llWgXu3pUXBzR6w=; b=UyjjnGEUYzz4UwD7ljep4vtknl 7uNkvhY1XD5MJvAMjotOCU8qKpppo4F33yrN0mvpPVsaPnQqCzqLYesaKdxVmAnKRVOsuxUIGhZTu iPahBDvEVd1GpDx+XlzruGvwW5WNgxIcelf3KuJziY5CODFlaaNuruMB6ukWFFJt4Xl6bPvbbUgtk qs8LFoVYGmASYBxZqYgQTVfkXBKrvI0MovUp2LC9f8YogV01VdMBTx7YmJt+YzGGLXRHKa8+Uudob 4l8G/4v7xUfofBa260hHWtCdNB/CVcn9BEsE7IV9IoEE/feYfo1nJHJJ/d63H8rbrGqsudzOnqLF6 NXycSVXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ3o6-0000000E8DD-3JZJ; Thu, 03 Dec 2026 10:12:54 +0000 Received: from mgamail.intel.com ([192.198.163.12]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ3o4-0000000E8Cd-23YD for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 10:12:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796292773; x=1827828773; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=dmSvwIdYRQETjazy0b42C6BItAi3llWgXu3pUXBzR6w=; b=Ayo1ya0w0tZCjtgl+iqsYoGSV3wD8ZTEH87foerGNEvx7dqfrDREUC9B 2kJJGV1FN3Bhc/Of5XKDcTJh1emAmUN9jayju1Kac8ksmJYpbLfTSY+Fn NdEiaeTQyT/ctRuOLHm0kqRKMV52NWrBjL1gxz71IcS1D+ceORgRuteu1 t9FpGjxhGxaFFxsScAYj+NPMMWj5IsrTvPhM7gcvJ/5OWh7m/AV3tGR8Y +L3HW3SHkLrti/BHyLzebDxM+4o7ZAA2VqZeepq3RB6kC9v0JgUY3L9cO 634PSHrDyW/o8Piw6GpelRGV113vHyNUsK/fUAWL4U7Tj374CPeoiVwWb A==; X-CSE-ConnectionGUID: 6BEAgaMpQyyxHi+0tnx8dQ== X-CSE-MsgGUID: A3DXyvFwRA6z3A1U8bUHCQ== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5150204" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5150204" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 02:12:52 -0800 X-CSE-ConnectionGUID: 6IfyW/hMRJ26x8Qy90GBpg== X-CSE-MsgGUID: tCOFwYBaQ9KyRFKXn8CTpg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="13909704" Received: from inaky-mobl1.amr.corp.intel.com (HELO localhost) ([10.245.244.115]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 02:12:48 -0800 Date: Thu, 3 Dec 2026 12:12:45 +0200 From: Andy Shevchenko To: Michael Walle Cc: William Breathitt Gray , Linus Walleij , Bartosz Golaszewski , Petar Stepanovic , SriNavmani A , Prasad Bolisetty , Tzu-Hao Wei , Karthikeyan Mitran , Mathieu Dubois-Briand , Lee Jones , Long Zhao , Joseph Telaak , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sashiko Subject: Re: [RFT PATCH v2 01/14] gpio: regmap: use the correct number for .ngpio_per_reg Message-ID: References: <20261127145232.814492-1-mwalle@kernel.org> <20261127145232.814492-2-mwalle@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_021252_538988_AAA7527A X-CRM114-Status: GOOD ( 14.22 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Mon, Nov 30, 2026 at 11:21:09AM +0100, Michael Walle wrote: > On Fri Nov 27, 2026 at 6:19 PM CET, Andy Shevchenko wrote: ... > >> /* if not set, assume there is only one register */ > > > > ^^^ Seems like the comment lacks of an adjustment. > > No sure what you mean. If ngpio_per_reg is not set, it's still > assumed there is only one register. Regardless what ngpio is now > initialized with. Or do I miss something? But can one register be longer say 32- or 64-bit? > >> gpio->ngpio_per_reg = config->ngpio_per_reg; > >> if (!gpio->ngpio_per_reg) > >> - gpio->ngpio_per_reg = config->ngpio; > >> + gpio->ngpio_per_reg = chip->ngpio; -- With Best Regards, Andy Shevchenko