Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1423230pxb; Thu, 4 Mar 2021 10:52:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuU3xR33w8+Gem1CpYHEfNwBlN7YamrHkYkIjccW7o8cLpN7sqNAxiAy6yFbWULjJOxepi X-Received: by 2002:a05:6402:149:: with SMTP id s9mr6023652edu.247.1614883956610; Thu, 04 Mar 2021 10:52:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614883956; cv=none; d=google.com; s=arc-20160816; b=gBRkgdFEYK3L77GyAzNIwWmpghm8SA8kPGe5UBd5pfSoCS2s+ANy7k3lC7rtOlraSL lm4514K1Yd42v3AMBqGAisBfBSX1LU/lCdFr980zx1bB3zJk/1vKeTRV0WvzeL/GGtwr 1Kfo3ppD6oiEQA7RdBP4uV9wIulAIRdnsCSOnE8sbLFAsDNsU6D4E56xbE7lzP/T6Gid bVA2zMIwY/DLHBvqqHk0HCOlOK26zeha/HyXXVcmnUCthzHFYxlPweAcNdEjUCGdoVvy hS13iUHgtCcOdjrnJkE5wrk4bNfMc/CgId/zSyvhEnDhgfwjAcppNXbLx2WJJn9AWlxX n1Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=8leGGOIllg2Pcj6YAxzqPRQC7qBgzYYE3S5qurTfY54=; b=PVzHEXtJ7P81g4IN/ae0aNQMhBgDcD2TNBrcpyDwynGejrt9wpVBPnsUjNGRF0BlMz 6QUoC2QuikfISVXeLyhzKyEHqLfc7zTQq7yloXoeYWhzbbTyg2dVJ2nUHLtoNYdg6C2d 7BK697PZ6o+h0z2Nnoid9surGTATBxQB0AesMykOfZzXTOWLYfN9darqC7/p3CbLMJqN S5h396NevAzoBpk4p4DaEpKpsGrV+w2B8jRv7maVSTN4yjbBLMkSwfHNuIKZ59Q0Q3kF dmg0h+x0KQqake4Y/gUdvBtp69uesF4miaNgbl1LiGNjYcvXS+inAbb1Za1+0rHFICtT vmSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=srDRU9NN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h20si9087754ejc.687.2021.03.04.10.52.13; Thu, 04 Mar 2021 10:52:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=srDRU9NN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239242AbhCDRZK (ORCPT + 99 others); Thu, 4 Mar 2021 12:25:10 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:37729 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235312AbhCDRY5 (ORCPT ); Thu, 4 Mar 2021 12:24:57 -0500 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 140B022234; Thu, 4 Mar 2021 18:24:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1614878655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8leGGOIllg2Pcj6YAxzqPRQC7qBgzYYE3S5qurTfY54=; b=srDRU9NNYJH4B+t8TOFUb5PW7UcEAjU98lrAXmgbkznEudWIwmObRJsvwekZn7YgZMLH+7 clIfjZWB0StdARntUPAVDUhjiHk7yFLYJUBp4f8fLWihVRcYe0yp6Kw+zqhekFJdcVLylm eqdsc4ojmqpvjJbxcuqUSbX/Lzxn6xo= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 04 Mar 2021 18:24:12 +0100 From: Michael Walle To: Andy Shevchenko Cc: =?UTF-8?Q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= , Linus Walleij , Rob Herring , Bartosz Golaszewski , Florian Fainelli , bcm-kernel-feedback-list , Jonas Gorski , Necip Fazil Yildiran , "open list:GPIO SUBSYSTEM" , devicetree , Linux Kernel Mailing List , linux-arm Mailing List Subject: Re: [PATCH v4 02/15] gpio: regmap: set gpio_chip of_node In-Reply-To: References: <20210304085710.7128-1-noltari@gmail.com> <20210304085710.7128-3-noltari@gmail.com> <9A8A595D-2556-4493-AA96-41A3C3E39292@gmail.com> <0504ADC2-0DD5-4E9E-B7DF-353B4EBAB6B4@gmail.com> <68F60F3F-33DD-4183-84F9-8D62BFA8A8F1@gmail.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <4839e31730b22004f1ebe9510d3823ce@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-03-04 17:46, schrieb Andy Shevchenko: > On Thu, Mar 4, 2021 at 6:33 PM Andy Shevchenko > wrote: >> On Thu, Mar 4, 2021 at 5:44 PM Álvaro Fernández Rojas >> wrote: > > Let me summarize what we can do this independently on any of my > patches and be okay with. > > In the regmap GPIO configuration you supply struct fwnode_handle > *fwnode. > You can you fwnode API in the actual GPIO controller driver. > Inside gpio-regmap simply do this for now > > gc->of_node = to_of_node(config->fwnode); If doing so, can we please have a comment saying that config->fwnode might be NULL in which case the fwnode of the parent is used? > The last part is an amendment I have told about, but it can be done > later on by switching the entire GPIO chip to use fwnode instead of > of_node. -- -michael