Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1382356pxb; Thu, 4 Mar 2021 09:53:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyu0z2d83RWSiFdWDJAaLS49VcHer1DvCouLy2tcvcMuGNlpU8MyP56H6ifAxuly5rIEujF X-Received: by 2002:aa7:d316:: with SMTP id p22mr5457631edq.107.1614880396165; Thu, 04 Mar 2021 09:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614880396; cv=none; d=google.com; s=arc-20160816; b=ksLfd/v7/Ud2OXlYhiwGWSIWMUQL6hKCqJ06wIfVvReIDJeh6P5MYKPS3XZiYoMKIx HdrU3Br/VhE595nYMMt0lEJUYtfBjhfEQaJGzU0BMHQZYce54Kjb8+zQ62yzIarlDzlQ /2P8fgRh4u6W7jOW3WQQS0CSgCfLoYfZzyrpVNibA7jVyU/bBXj/5jwum+Blt5SP3dA6 WmLfPMCGwPFn6IYO3MuVxrSw7qDm2quZ81zFFYHSUO/rIJNfXFRs1Trs76x+55oWdwRj /cxqksY+gVWc37GmNGpLEPar6lIYwHOtaWARDdOvm/bQwcL7JoeC/Dn7H2BNahC6eEV5 3+bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=L1Zl/0TZh+dv1ZZwJhM8UfC9fmhPyjvuavEu2JqaSa4=; b=eB/QBpfBy6R2rpQmxgFfz35dTet/PdvdaizS77x8fW7CohZfMpPBse7RizXgGYzW9p ffyHkmQioOD9RJkbmuUPDoRhNbo69NoMTY9NsTzwhBtnIJIhCT8K3MHxn3ei/E3W4bae ZokY8LEQcXNMniSq0XlbbRvqKOVOnx/RY+X9Jt+T7k4KtN1h+Wo9ROmdHP3LojHj4fbG 3a1pRE2+oxP8Dc/6ANSCmo552wvTZtBSMEZ2n4q6gXxGxhPh1uevD7s8h2W8tR6lhCcd ZfrZ9L1h3H0XdvUgVNwH9V3q4idXRJglFzJP/u9+0S+cqEw0F0BiNhX7zGJeoSWdjrh6 T35Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KE12hClu; 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 c26si53315eds.593.2021.03.04.09.52.52; Thu, 04 Mar 2021 09:53:16 -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=KE12hClu; 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 S233777AbhCDPHg (ORCPT + 99 others); Thu, 4 Mar 2021 10:07:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233792AbhCDPHZ (ORCPT ); Thu, 4 Mar 2021 10:07:25 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B62CC061760; Thu, 4 Mar 2021 07:06:44 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id o2so9508231wme.5; Thu, 04 Mar 2021 07:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=L1Zl/0TZh+dv1ZZwJhM8UfC9fmhPyjvuavEu2JqaSa4=; b=KE12hCluTNnvJoeFuZhjiIciZVcKdw9e5L+j+YqiOgKif8RTUA7LLGe8idFgMVToPH bcdDGAPKFEluQoNR9xpgWAEt0VunnaCeyETlqUAu5OBII0+LLgHeeZxnHWtEWJrI2YZ1 /iUlHROBJQXjiPLbansXSxHu5TORHjVwnQSFYFdikl5sArIsUSOKLitpW8NiNzgYHR2o rXommfxyXHfag19HDeS2kDS75BBHQNjnKBTr8XyVnf9sWproD5RmwbPpNk0s5zPWz3On WgnAwAKd69fpMnOwhTKhmDRHA+dE4kiCP+mUKVpmN0l+ZE2B25xFGaqWMN0v0SLFglb5 gGAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=L1Zl/0TZh+dv1ZZwJhM8UfC9fmhPyjvuavEu2JqaSa4=; b=LlUCZaDTTg+UYEC1EfZ6q6lxFi7Rht5xXVJ4y71Sg0vZcT7wCE2FQOoo/hnJ8abat1 qwCu04/4Vo08jwVYP0poknhynt60jP0BQFCeX8Tz5Hk1UxZLyrbNYKsgUSbCRcgnpOid /MC8KelZ+sofZHWmXqf+8Tvj0Vsd9qRVMq8qh7Aphj11UatkkqBzA8AcA/v9BNRIT5Bt 7GhCFCUbnNVR8Kb6Tnwtooa/aPlKKZQDxH3QsTxrZWqjtey5P0DAGcMOQGAkxiw4vBBJ FlU8sXzr4+sNwuaY9BH0uGkwKuDYQHxVh1WaJJHSD/9ZcEZlzvFLGngXzQYG1+W3qGa1 ruZA== X-Gm-Message-State: AOAM533vCFUJOqh3OKnhMLFPmK862tHFF4z5O2UxlUMz+/zH7rbtP3t1 z0eKc8n8IuOOZZYqSB9ZxZc= X-Received: by 2002:a7b:c341:: with SMTP id l1mr4251960wmj.182.1614870403324; Thu, 04 Mar 2021 07:06:43 -0800 (PST) Received: from macbook-pro-alvaro.lan (170.red-88-1-105.dynamicip.rima-tde.net. [88.1.105.170]) by smtp.gmail.com with ESMTPSA id u20sm10905295wru.6.2021.03.04.07.06.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Mar 2021 07:06:43 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [PATCH v4 02/15] gpio: regmap: set gpio_chip of_node From: =?utf-8?Q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= In-Reply-To: Date: Thu, 4 Mar 2021 16:06:43 +0100 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-Transfer-Encoding: quoted-printable Message-Id: <9A8A595D-2556-4493-AA96-41A3C3E39292@gmail.com> References: <20210304085710.7128-1-noltari@gmail.com> <20210304085710.7128-3-noltari@gmail.com> To: Andy Shevchenko X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, > El 4 mar 2021, a las 11:35, Andy Shevchenko = escribi=C3=B3: >=20 > On Thu, Mar 4, 2021 at 10:57 AM =C3=81lvaro Fern=C3=A1ndez Rojas > wrote: >>=20 >> This is needed for properly registering gpio regmap as a child of a = regmap >=20 > gpio -> GPIO >=20 >> pin controller. >=20 > ... >=20 >> + * @of_node: (Optional) The device node >=20 >> + struct device_node *of_node; >=20 > Can we use fwnode from day 1, please? Could you explain this? I haven=E2=80=99t dealt with fwnode never :$ BTW, this is done to fix this check when parsing gpio ranges: = https://github.com/torvalds/linux/blob/f69d02e37a85645aa90d18cacfff36dba37= 0f797/drivers/gpio/gpiolib-of.c#L933-L934 >=20 > --=20 > With Best Regards, > Andy Shevchenko Best regards, =C3=81lvaro.=