Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2988120rwb; Mon, 5 Sep 2022 04:57:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Ct9u0q9c1ZuwK1kt1mIUn5gFQPdIasR3tXGfxgqniw7SbGk83qUvFe5KsCz4lKZ5lX/f+ X-Received: by 2002:a63:564b:0:b0:42c:414a:95fd with SMTP id g11-20020a63564b000000b0042c414a95fdmr30140162pgm.5.1662379072039; Mon, 05 Sep 2022 04:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662379072; cv=none; d=google.com; s=arc-20160816; b=JpMiTyNM0/Y0eFaxi8CtzuXRRfu+QPvRG/jdWPIZnk4E3VHho3bO+VBby9H+1k7bwv bOKKpPP45euwmcXB1GXM8N+nH6qfp4Mne2ADxHUdESGqZMFqGW0qiuJ3Mhv4FHZ8EJvJ Oap44vp7SPH1gFuowWjx1oekrH0GM2d0kOAyDD2l9L5svxkc/yP4A3c+PxljJXaG+Fk1 PZDqVo5TiJYuGpOYQNsAOhBO2fEz3LY5YCU5qgNc+dDo/9iYU4kHh7zHVLynp/1yLqWS /zNLKaWPqgHDlmD/Q3Lu9lR7Dsxz0sQl6azOdwsujoZUJVh4sWbtrkKojwUrOTKN3HAU S3Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kPt5+41RKlsZHNPWCx2b37Cp/UtyTvlNmL4pi/bNkis=; b=WzMZC+/WvBpHhp3oLLnPKGbQOsg1cLGmZgO3/Rs20PRnx1kFWN5Ctf8zjSPYzBb39Z U/UWpKR/06kndXSJRNIyAOi1k52N5OvvjlVxaAkool/VDmbd3oNahKxtM+rpW+SNF7K3 0Xtlm/tSWwcGYvx/8cefT8OxDmKlmw7cKAakIm7d3/1WGvFhb2jmQBbLMONJJJUL1aCC VE60SL1aUeWVWPpD8CaD2kZK7+zTo1uR9AyUnj5UuDanP1EuOl+HocSypMETg6ScX9Cs nP0uUb0cBF3K7/GPhziOV7+nPdEdS2G+uMnq1s9AkfDw9Vf6ty/ZyHy6l61ia871CVwe WJNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YXsW4xMl; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a62e90d000000b0053adb3105b7si9626670pfh.67.2022.09.05.04.57.40; Mon, 05 Sep 2022 04:57:52 -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=@kernel.org header.s=k20201202 header.b=YXsW4xMl; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237857AbiIEKyA (ORCPT + 99 others); Mon, 5 Sep 2022 06:54:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237659AbiIEKxq (ORCPT ); Mon, 5 Sep 2022 06:53:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0876057541; Mon, 5 Sep 2022 03:53:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9AEC161208; Mon, 5 Sep 2022 10:53:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD170C43141; Mon, 5 Sep 2022 10:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662375225; bh=KnM89UV/QXbr+bD5uW61IQuouhORuL6HjctA/n6mRg0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YXsW4xMlqP5G1yqVn2Vnp7wQDcPAoNf58U0cr8myKFBfvUzkhpC+Iscqcyg5rEIhZ 0PMTgWItYJNmw8Z400ucNJ5B0XE0lekJpX4qyetV4qePiVhpwNvYixfPDpcUp14ikB 22T/9xIpoVj9aJjbUdIR8NPhsD59irNN093isONgtwU/IDqAU6CwhROyPAZqKJ3Ax2 Sj/95TQsCXTmoey/B358xD1yE1qexDQ+Le/UUWfUT+rUg92OQbc5mebVHkcJj3e8vm 1Cb0U86VmYuGN9CH7WKr97gNp1kG1ChXDQHt2IQgh1P4RW98tzTzb6AB6Z4u/ySvYP V7b5ELppG5LAQ== Received: by pali.im (Postfix) id E35A67D7; Mon, 5 Sep 2022 12:53:41 +0200 (CEST) Date: Mon, 5 Sep 2022 12:53:41 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Andy Shevchenko 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 , Krzysztof =?utf-8?Q?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 Subject: Re: [PATCH v1 01/11] PCI: tegra: switch to using devm_fwnode_gpiod_get Message-ID: <20220905105341.z2pjlpljitws3j6l@pali> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Monday 05 September 2022 13:49:21 Andy Shevchenko wrote: > On Mon, Sep 5, 2022 at 10:23 AM Pali Rohár wrote: > > On Sunday 04 September 2022 23:30:53 Dmitry Torokhov wrote: > > ... > > > > - rp->reset_gpio = devm_gpiod_get_from_of_node(dev, port, > > > - "reset-gpios", 0, > > > - GPIOD_OUT_LOW, > > > - label); > > > + rp->reset_gpio = devm_fwnode_gpiod_get(dev, > > > + of_fwnode_handle(port), > > > + "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. aardvark is single port controller. So it is basically same.