Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1880465pxb; Fri, 5 Mar 2021 01:46:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSFzHsrc0ZwTixtBqIiVNLxwpb5wQnpJOKpLJUdbXhBS8J0jD3i6I15fh+2WtvSZeZ8HRk X-Received: by 2002:a50:fe89:: with SMTP id d9mr8440134edt.57.1614937618493; Fri, 05 Mar 2021 01:46:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614937618; cv=none; d=google.com; s=arc-20160816; b=QLEOX/RD3xk+gxXBcD3PHpYZzk5zxGXz2lIj4I5g193wVOgsEvPy6xoxQq2EEsSQ/D gG9oHSkdKza7NovH3OO2rGVu5fOyHa/kqnNmf+RfHLnqPZCY9W+6XMozeQMJ5cp9Irz9 BdB9mr0fuqApHakGBhM4t0e+XuJUb3odZvOBl3vmeo6IoKUzLlx0zFvilr56dW0YjXZG n1zwWaO5Wy6qauRs6fhVyTybPc8Sr2tGkvjS+UCU+PU+FUhs93SwWcRZH64tH7aFAPL8 fAM7AT53aZuTGyGenm5w6qFj9Uu7L2YinY04DZRGzOLOIPtoKdfugYwxC59QtbfjWW8R HEFA== 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=/UcxhiEkfccqsDr9yQQr2scZAanKlqasnKIOowcaKCo=; b=b2R6iQS7bd5+PEhXW78CUHjKlpcd93XawIF2kHnDGWL+Ny6x9kWnpiGjT0DCsr++ON UyWg+q8p6MAlQDZq94eIU9WkhwrM77GRS2wajrcUJASA/B+hGFWpci3F4o1o7MrlrfjN ndtdinDf/FIx+GLxsVwzPPolxALxBi1OdNikjFSArIs/YENPocNODNC/TY8VURcxyIzH G+LY0qdfeTk5rxFMUd73EbTUflg9f4oosz7doLMACr2EssSniXF00MNdjTFeYFSI/ws5 w8Hevlp/Nx1fZvi4RbJtVpv+RShmymycVXkgSErhCt1bYMw1/1DybF2EZSczxLdma5+I m+OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zavc3YVU; 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 ke20si1050273ejc.305.2021.03.05.01.46.34; Fri, 05 Mar 2021 01:46:58 -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=Zavc3YVU; 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 S229646AbhCEJpf (ORCPT + 99 others); Fri, 5 Mar 2021 04:45:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229668AbhCEJpG (ORCPT ); Fri, 5 Mar 2021 04:45:06 -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 6E8ACC061574; Fri, 5 Mar 2021 01:45:04 -0800 (PST) Received: by mail-pf1-x434.google.com with SMTP id y67so1784287pfb.2; Fri, 05 Mar 2021 01:45:04 -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=/UcxhiEkfccqsDr9yQQr2scZAanKlqasnKIOowcaKCo=; b=Zavc3YVUJ2VHnvMJDlyxudjYrwJv+6yWogOYN+mJW/svEBETf0TnMHYniTCyuG9+Ua pgV1z26C8wwRk3BAgjYAa379mcdvXCqeY4ayvVF21SnPP/QI1Kz2szzLIExRem1A7Llr PLyvcF2fRAJ71XxTD3Pxz11+9Yt7V5Z8ng3ZbmZeRnOxfJO8BZ2obobgXNKiX0eo5jqz v4sD9zPaIdgCAAlcKY9s4CZbPYto1rw7h6v9pD/u5qUiisj/KytJkUms70O96BE2C8OA KM5JsWkikIB2FeF5COy2VpuTtkQ6Sz1oEJRj7bft+WAae33vcg1pp3Xb0eH3ZOVq8qEm J7xA== 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=/UcxhiEkfccqsDr9yQQr2scZAanKlqasnKIOowcaKCo=; b=GhBAcQXuQOSiOT/JScYlTv/ZRRYdrJuSpEWxbiVQu5kMp6TVO4Hp2NxOecLfS0sQkK B2IVLNNMfox+dKgyOaLLeeDkltOpKgyDtLhglzliUbMW4xNzpJTo3FciDaZoIiCVRiJN aHc+JoRyYqBCMKfcH/5KMQ/zBETS0nkUIXzuOGOqjBRrya/e/bGyAdzTgr+kuMpenYlj H8Z+roXgP3uo+y0GcJoqQ8fUpY/YE4Sf/tgLHYvBz/QQotMQA2MLgTRmi5vmctgBX8Yr T0fK3UQzruSG30L4F0jTFctxgwHE1OxZIGmLByKvQaCCaERSEF+Bru065OxTBqbjHFuf 2i3g== X-Gm-Message-State: AOAM533W088wWihAOdYJzXd4Cl1yPc+OA5lbFpWrNMMBwi7eWtDNFhw7 am9eE00RuRGWTeQ5+ejkva29AEb+LKau6lh+0Qb7yv9kefFzUw== X-Received: by 2002:a65:5ac9:: with SMTP id d9mr7646277pgt.74.1614937504035; Fri, 05 Mar 2021 01:45:04 -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> <4839e31730b22004f1ebe9510d3823ce@walle.cc> In-Reply-To: <4839e31730b22004f1ebe9510d3823ce@walle.cc> From: Andy Shevchenko Date: Fri, 5 Mar 2021 11:44:47 +0200 Message-ID: Subject: Re: [PATCH v4 02/15] gpio: regmap: set gpio_chip of_node To: Michael Walle Cc: =?UTF-8?B?w4FsdmFybyBGZXJuw6FuZGV6IFJvamFz?= , 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 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 7:24 PM Michael Walle wrote: > 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 =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); > > 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? Good comments are always welcome! > > 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