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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49C40CA1016 for ; Thu, 11 Sep 2025 08:02:40 +0000 (UTC) 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-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=h7s7cIpoWzooi6KCel1K/BhJC4KE4day4yCyTcRcgmQ=; b=iBsVWi9Pau1QRvZkU0lQ85fTO8 8laxvhTOH6KwziczSmyNSrxvlyF4ZsKzIJr1X+F6ZX/g04RNpfadagW5UKGvjay0H/FuvzV7VfJPN RvdUOqDYVOz2TTJ/fjOCgxfvC9eUQ/fZl4/FSQZmUr8Fp3PC8c7n43Yo26g9KPOxC/Kv1yF6miRPM J7q4LdtbhjidCl6+Y8Y0JGMREaj4/ODsm4oDbDvrTbgc6aGUtjI8l83YrAdlHYv2pUG6VmpT/JewW 8E0qT12VbGF0f/kiwgKxzw40NN+XRei9K5w2ajVRkGQTHA8FUYTGOMf4pegXzeQCqVmc49QnrzkhI CoebQKWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uwcGN-00000001hUp-2HlP; Thu, 11 Sep 2025 08:02:39 +0000 Received: from mgamail.intel.com ([192.198.163.18]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uwcGK-00000001hSi-1Yf5; Thu, 11 Sep 2025 08:02:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1757577756; x=1789113756; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=kdicIERSEGS6CGqV+GThuXvTSIsMgiNJoEUEEMAQ7JM=; b=cjmKTtturTBd1u1rRoNqqkPHnT+f1CuyYm3OnFnQ64Lg9c8b0d3xfzQN RlcfdwX3WmeRnJmBuHBVBHdzHT4qUypp0wD1AnYyA1LpIc1xs/4YrkDj6 IwltMsrN49XIPqyMB5YfGYIRmB4Q0aphRf0LDIm79G6kWJGoNaWUNluf1 SJlzLMpsKz1lCPwbF4V4mXt6L7c/U+yqsOr+X1YVeaRxkZYq+g7/ihy+/ fDToy2PVp0jKkJ0Xuy8bnIxm2QrtZfPDpyUV9BHwMMiUlxnX+9IaRD/Xq x8UVrxnJdJ6YzgIMmMnXzM7cFGIVXrT2Y37K4AKIXGbvJ3LZgQVCOpOE5 Q==; X-CSE-ConnectionGUID: umL3eZeQRDyat69o4z+giw== X-CSE-MsgGUID: zzO25s1ORQWy0WkJSNh6Zw== X-IronPort-AV: E=McAfee;i="6800,10657,11549"; a="59130645" X-IronPort-AV: E=Sophos;i="6.18,256,1751266800"; d="scan'208";a="59130645" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2025 01:02:36 -0700 X-CSE-ConnectionGUID: HSAt/B/2T7CyoKV4/Fpp1g== X-CSE-MsgGUID: KD+qII/XTDGOjnGuMB8DWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,256,1751266800"; d="scan'208";a="172805532" Received: from smile.fi.intel.com ([10.237.72.51]) by orviesa006.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2025 01:02:30 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.98.2) (envelope-from ) id 1uwcGA-000000022ZP-12Gk; Thu, 11 Sep 2025 11:02:26 +0300 Date: Thu, 11 Sep 2025 11:02:26 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Doug Berger , Linus Walleij , Keguang Zhang , Alban Bedel , Florian Fainelli , Broadcom internal kernel review list , Matthias Brugger , AngeloGioacchino Del Regno , Paul Walmsley , Samuel Holland , Yixun Lan , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Bartosz Golaszewski Subject: Re: [PATCH v2 07/15] gpio: brcmstb: use new generic GPIO chip API Message-ID: References: <20250910-gpio-mmio-gpio-conv-part4-v2-0-f3d1a4c57124@linaro.org> <20250910-gpio-mmio-gpio-conv-part4-v2-7-f3d1a4c57124@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250911_010236_418856_39089ECD X-CRM114-Status: GOOD ( 12.75 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Thu, Sep 11, 2025 at 09:56:28AM +0200, Bartosz Golaszewski wrote: > On Thu, Sep 11, 2025 at 2:11 AM Doug Berger wrote: ... > > I'm just curious about the longer term plans for the member accesses. Is > > there an intent to have helpers for things like?: > > chip.gc.offset > > chip.gc.ngpio > > I don't think so. It would require an enormous effort and these fields > in struct gpio_chip are pretty stable so there's no real reason for > it. What I would like to see in TODO is to "make struct gpio_chip const" when passing to the gpiochip_add_*(). -- With Best Regards, Andy Shevchenko