Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2953286rwb; Mon, 5 Sep 2022 04:20:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR7+8XfdI/bq87sIDpziV1JwWnEUEOtdflvJZN+PtkK6JTRuBIQTaZd3vygeINlhEcEKWbPc X-Received: by 2002:a62:30c7:0:b0:52f:9a31:5935 with SMTP id w190-20020a6230c7000000b0052f9a315935mr49768806pfw.14.1662376824373; Mon, 05 Sep 2022 04:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662376824; cv=none; d=google.com; s=arc-20160816; b=UAqB6mYDSi6Cq3ACmMGAmCq+IJdJnB7ikYLjEMpp1cfOoqwsw7YNXv0t6JRYosVFdD WBCEa6cluzOU8I6Y7r2Wl5Usq2L9sCBCpHIhHOEs+pbf49SMuePfZ4MR7PrQtpZv+DzV LyHehfOjv4HooC7ERZ2D5XNjwHjn5UX46Jfqmdb5DMsq6UeQB5w8cAnGa0yvWDGpkDYl fICL9Oz+yTcCuGPOk9Hb2v6IWFxaZcIJdBHMW2OCsPVEPk11Jvjh6UuPbQpp80t4E4Gd +JJbyhPIpWBK1jeeynyziaj0L4iux4wGuSED/dmzh4+t1cXP9l0geeuwI5eBvtFAsHZT 6EDw== 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=c2nRQWb+fQUQq5AQnrIySgvmnHVhBaOL/o7B8oGby/I=; b=Rne3qiowN1DrDp2f99wkpEMnOFiy83VWbs4bHEtfJiqiPJsdX6CdxmqQMDliAy1mlD GCvsmYdQW/oOv3iVWFIRBoKBuZjZNczuAqyTJKBzeWoSuPz35CRRA9YAv3ZSXwfR3fPM tI7EUpB0LCqNyGdtZvhd3zrL+CaWVYhOkx1luAUNijJ2KR3lXnCfgu9u7AcQwPQa75aa DCF0xnX6g8iFvwyskR4yaLNbQ1CVPK2S0+m/qDK8wQYRLBFT+wDjZwgTEIgr+iiu51+J KSqKPy7u53Ol2EZFMzvooPx86pv4okgoP8/Vd2VyLPWA5CRU0ZNkPF7hJAMMSo4XR4mJ o0og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bJcqTGAC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nv6-20020a17090b1b4600b001fd8ade18aasi3629559pjb.137.2022.09.05.04.19.50; Mon, 05 Sep 2022 04:20:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bJcqTGAC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237561AbiIEKuD (ORCPT + 99 others); Mon, 5 Sep 2022 06:50:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236609AbiIEKuA (ORCPT ); Mon, 5 Sep 2022 06:50:00 -0400 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B926D29C9F; Mon, 5 Sep 2022 03:49:58 -0700 (PDT) Received: by mail-qv1-xf2e.google.com with SMTP id g4so3682298qvo.5; Mon, 05 Sep 2022 03:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=c2nRQWb+fQUQq5AQnrIySgvmnHVhBaOL/o7B8oGby/I=; b=bJcqTGACtFXLmXsUFqpw+PFDufx4FlXQ9j/RFhHUQVHKZqoTndY/JkV19g6BLOeeUo 4hwSoSeec32Tbw+OMHEGG0r6M3e1GMJ/NJcg/FZwHW1SClzced4lWIu+/ZShrdu3JDTD V762GqyZZIhqeYexr860HlDH8BBXqi/Xiv+2j3KgGGGsMmOP08meZgz/a8ltQBauY42v 3tIliUsfRb5Lb2wvCwZlmuODmHlyxQTZ+r40eHwZ7AsK+hrNiFx9jEpz+HZY8XcSMnnB 5QEIV3Pay913kDLF3Na3+KE+sGrpwp4YFq2VvbdqUoXS9I37A0JHt+Mwwdcik+o8Vvzp uBaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=c2nRQWb+fQUQq5AQnrIySgvmnHVhBaOL/o7B8oGby/I=; b=rsZtkOuls+CtRdDM2lsXT/JDBraVTCPpRpDQwdd/grk40urKoLmJoUGkhP1gZrX3QX wFcFL7K+8n+VyPkoqOIMmgl3KWb79AmYFvBjrqmRIlyo1Uq6uidEOObYkKWsetBI2gQ3 DNi0mohtozgaDYrwWWBTq4y1pFsDEnQfgLvRURg/FqlqqYa8SqaTCzl/+efKVbx/sD0u lFIqjZVd72QPmKcMyMMrhRep20Jv3j8qlnD+esnk48KxZSKv6iiDpRoCHaM7bTsAGnmw 9BLdjo5SRGltnritBMn9wy6gyqOF9WaQhAtbpUj7kegttalqMp9s4sSZXtpnZ7wl3RVB Z0YQ== X-Gm-Message-State: ACgBeo07f8dScQHXkO/HLJH3RTv3vrIGn65BsXcw7wfze5gzDnpdj/4p 2P4k3nTeDq/SIR7IhBroar+Qn3QYK5DqrfPe8vFaYtXkZ7w= X-Received: by 2002:ad4:5f8f:0:b0:4a9:b75a:e33c with SMTP id jp15-20020ad45f8f000000b004a9b75ae33cmr746972qvb.82.1662374997159; Mon, 05 Sep 2022 03:49:57 -0700 (PDT) MIME-Version: 1.0 References: <20220903-gpiod_get_from_of_node-remove-v1-0-b29adfb27a6c@gmail.com> <20220903-gpiod_get_from_of_node-remove-v1-1-b29adfb27a6c@gmail.com> <20220905071902.fv4uozrsttk3mosu@pali> In-Reply-To: <20220905071902.fv4uozrsttk3mosu@pali> From: Andy Shevchenko Date: Mon, 5 Sep 2022 13:49:21 +0300 Message-ID: Subject: Re: [PATCH v1 01/11] PCI: tegra: switch to using devm_fwnode_gpiod_get To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: Dmitry Torokhov , Thierry Reding , Mark Brown , Matti Vaittinen , Lorenzo Pieralisi , Claudiu Beznea , Liam Girdwood , Wim Van Sebroeck , Greg Kroah-Hartman , Guenter Roeck , Miquel Raynal , Linus Walleij , Felipe Balbi , Alexandre Belloni , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Vignesh Raghavendra , Daniel Vetter , Thomas Petazzoni , Alexandre Torgue , Marc Zyngier , Richard Weinberger , David Airlie , Nicolas Ferre , Alyssa Rosenzweig , Bartosz Golaszewski , Jonathan Hunter , Rob Herring , Maxime Coquelin , Bjorn Helgaas , LINUXWATCHDOG , USB , "open list:GPIO SUBSYSTEM" , linux-pci , linux-tegra , "open list:MEMORY TECHNOLOGY..." , Linux Kernel Mailing List , dri-devel , linux-stm32@st-md-mailman.stormreply.com, linux-arm Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 5, 2022 at 10:23 AM Pali Roh=C3=A1r wrote: > On Sunday 04 September 2022 23:30:53 Dmitry Torokhov wrote: ... > > - rp->reset_gpio =3D devm_gpiod_get_from_of_node(dev, port, > > - "reset-gpios= ", 0, > > - GPIOD_OUT_LO= W, > > - label); > > + rp->reset_gpio =3D devm_fwnode_gpiod_get(dev, > > + of_fwnode_handle(p= ort), > > + "reset", > > + GPIOD_OUT_LOW, > > + label); > > Why in pci-aardvark.c for PERST# reset-gpio you have used > devm_gpiod_get_optional() and here in pci-tegra.c you have used > devm_fwnode_gpiod_get()? I think that PERST# logic is same in both > drivers. It's not the same dev and its node in this case. There is one reset for _all_ ports, here is the reset on _per port_ basis. --=20 With Best Regards, Andy Shevchenko