Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1627619pxb; Thu, 4 Mar 2021 16:52:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4iLns8ZA7KBsLtjUrtNkeGjm1YA8nOD3qGqn8CL5u+oQRGM7a7aW5S9DFbr+uhjtDWA8f X-Received: by 2002:a05:6e02:1be6:: with SMTP id y6mr5986641ilv.145.1614905563959; Thu, 04 Mar 2021 16:52:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614905563; cv=none; d=google.com; s=arc-20160816; b=j/oL2wd2C5UnorZcNwaBUXxn7a0BWhRTbpQvbh044/E/ReQpZmrT/llh8HmMvwSWnt yFNMhdhP5ebW5/GklfM/a0G1bQQNbjwLw8oR7R6fQgN0N9/VI3SooFSEGIlm4VQ2Xg8E 3Jwimaw4QFqFHC9wqhJBVAFDwmU+6jjbuIA1cLQobtXG2idXHwSN72yNVsNlU4uM8dMt A/rL2ir2/EyoEkPEehp17eJJtG9h1XKHAQz9yC7pkdmH7XqdEopzQh7VH5aYtit25iYc YG4yd0v5KMGcO9B1gnGIQiyMgUpeiFeBbr5KM9bPJS7o2UwI8uMfahAtyFoNiP5bdnba o5SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6Rk2foZ0joo8zW1+GRn0pyh0ek8eq+0AnIdr4tRBx58=; b=xdaahIToHQiLi6tXR7+TIXL+9XCWpxXlJXzHelEfoJCppgb1mOhZJL/qO6NYkM6R20 GLttBaKUJZC1OELJrPNMwKf9X1UXQ+tPl2l/gOmJgE0r+8O/7p7CEXNjpClkETq+Tn4v dgstWuYAfMaBhAyvWjZqP298og85F8ItsAJBq1ztU3wSAFtXRB1GEDnqPYqDxr86w0BM OHfdvhG9TjHVntZ9EDrJg8vYLALIJYRuDbyYehBVcFrORGv4ZBcfOhER2MnlNftygiX/ 53Fm/jxHzkWjS5m5VoCX4jkOxudOwx8ZeblBBD/TXn1T9CLo/G1uEDBGRY/xvQsNZpSb 6eUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AgCwHqQw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j29si654554ila.91.2021.03.04.16.52.29; Thu, 04 Mar 2021 16:52:43 -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=@gmail.com header.s=20161025 header.b=AgCwHqQw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238316AbhCDQrs (ORCPT + 99 others); Thu, 4 Mar 2021 11:47:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233320AbhCDQrR (ORCPT ); Thu, 4 Mar 2021 11:47:17 -0500 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14221C061574; Thu, 4 Mar 2021 08:46:37 -0800 (PST) Received: by mail-pf1-x434.google.com with SMTP id 192so12334849pfv.0; Thu, 04 Mar 2021 08:46:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6Rk2foZ0joo8zW1+GRn0pyh0ek8eq+0AnIdr4tRBx58=; b=AgCwHqQwPe61JjaEYkIGwVPz43Ic9LhNEfkOl9tMNTxbrjcVnLiijqY5xGshch1FuF oTNvjemGzV6/o6gUkeMCAGtxxbAShWKHi4Z3pecR0ufNL4GB2dGUUwsl2KGZdL9LyGm7 WwzNN/VxcP2cjXY/Noq9PGApkA7bgOFd7CgRR2qWQPNyIDaqAae6sXImS5AoNsF+kVRg MwwJoRA4g1c2r3IsuOkoy2JZMCDRKoITolaChCaDRTBk6lnH7UVg48em+N9eidk311KP 1MT7kLOu/VF7ZCaxnn5JNJzRvH5oW9pjKAgTfDgXCdbRS2FdZcY7WJumsYrgzYCpXSAB Faug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6Rk2foZ0joo8zW1+GRn0pyh0ek8eq+0AnIdr4tRBx58=; b=MYODzr+//GdFdMlg5zC78uNfkXRJKCfXjLIpx+f5JnhKJVBVja4OAG2/CfqOPk/noa Jx/p2BsogEdTsubsUdBuXy+ho3KIuE/rcuXD/IP/R7WUa8+qRZb2ky3HLN1NOyCv2z33 W9ESNShKMi/WzKePBndhR2aVjoRbOOnIJuIrXXT9duM4sBnZp521DnXUeaTKtSPQcDG0 Skens9QKqd6h8m6ZD9Hz+0tEfX+lHZN1TEZcPQW7r8j/rbPDcoxR6bskBzfVh6bLHpZF ySCNiSUuoFlQjAteg03bgiWJEdqcU2CXYbqLK0gdLh/6EV6dlXljZ/qp+2TP7TQkAOiC NC9A== X-Gm-Message-State: AOAM5337+oCcfz582wxDUtviSEKe+opV0ooiBSlhjCixvLokKARkx0rz cSXBNKrl93YDg0WVrsIgt6vASv/oU4LqnGyk0+g= X-Received: by 2002:a65:5ac9:: with SMTP id d9mr4343451pgt.74.1614876396217; Thu, 04 Mar 2021 08:46:36 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: From: Andy Shevchenko Date: Thu, 4 Mar 2021 18:46:19 +0200 Message-ID: Subject: Re: [PATCH v4 02/15] gpio: regmap: set gpio_chip of_node To: =?UTF-8?B?w4FsdmFybyBGZXJuw6FuZGV6IFJvamFz?= Cc: Linus Walleij , Rob Herring , Michael Walle , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 4, 2021 at 6:33 PM Andy Shevchenko wrote: > On Thu, Mar 4, 2021 at 5:44 PM =C3=81lvaro Fern=C3=A1ndez 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 =3D to_of_node(config->fwnode); 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. --=20 With Best Regards, Andy Shevchenko