From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Pali Rohár" <pali@kernel.org>
Cc: "Thierry Reding" <thierry.reding@gmail.com>,
"Mark Brown" <broonie@kernel.org>,
"Matti Vaittinen" <mazziesaccount@gmail.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Claudiu Beznea" <claudiu.beznea@microchip.com>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Wim Van Sebroeck" <wim@linux-watchdog.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Guenter Roeck" <linux@roeck-us.net>,
"Miquel Raynal" <miquel.raynal@bootlin.com>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Felipe Balbi" <balbi@kernel.org>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Vignesh Raghavendra" <vigneshr@ti.com>,
"Daniel Vetter" <daniel@ffwll.ch>,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
"Marc Zyngier" <maz@kernel.org>,
"Richard Weinberger" <richard@nod.at>,
"David Airlie" <airlied@linux.ie>,
"Nicolas Ferre" <nicolas.ferre@microchip.com>,
"Alyssa Rosenzweig" <alyssa@rosenzweig.io>,
"Bartosz Golaszewski" <brgl@bgdev.pl>,
"Jonathan Hunter" <jonathanh@nvidia.com>,
"Rob Herring" <robh@kernel.org>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
"Bjorn Helgaas" <bhelgaas@google.com>,
linux-watchdog@vger.kernel.org, linux-usb@vger.kernel.org,
linux-gpio@vger.kernel.org, linux-pci@vger.kernel.org,
linux-tegra@vger.kernel.org, linux-mtd@lists.infradead.org,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v1 06/11] PCI: aardvark: switch to using devm_gpiod_get_optional()
Date: Mon, 5 Sep 2022 16:18:44 -0700 [thread overview]
Message-ID: <YxaD1Luja4T/osP5@google.com> (raw)
In-Reply-To: <20220905231010.ojl4i4ph27qtebiy@pali>
On Tue, Sep 06, 2022 at 01:10:10AM +0200, Pali Rohár wrote:
> On Monday 05 September 2022 15:54:53 Dmitry Torokhov wrote:
> > On Mon, Sep 05, 2022 at 09:00:46AM +0200, Pali Rohár wrote:
> > > On Sunday 04 September 2022 23:30:58 Dmitry Torokhov wrote:
> > > > I would like to stop exporting OF-specific devm_gpiod_get_from_of_node()
> > > > so that gpiolib can be cleaned a bit, so let's switch to the generic
> > > > device property API.
> > > >
> > > > I believe that the only reason the driver, instead of the standard
> > > > devm_gpiod_get_optional(), used devm_gpiod_get_from_of_node() is
> > > > because it wanted to set up a pretty consumer name for the GPIO,
> > >
> > > IIRC consumer name is not used at all.
> > >
> > > The reason was to specify full name of DTS property, for easier
> > > identification of the code. DTS property is "reset-gpios" but API
> > > specify only "reset".
> >
> > I see. Do you want me to reset the patch with updated desctiption as to
> > the reason devm_gpiod_get_from_of_node() was used?
>
> I think it is fine. So add my:
>
> Acked-by: Pali Rohár <pali@kernel.org>
>
> Anyway as another improvement for future I would suggest some API
> function with _optional_ logic, so it could be used for more PCIe
I think we need to see how many are attaching reset lines to subnodes.
If there are multiple then I agree we could add _optional. So far I see:
dtor@dtor-ws:~/kernel/linux-next (gpiod_get_from_of_node-remove)$ git grep '"reset"' -- drivers/pci/controller/
drivers/pci/controller/cadence/pci-j721e.c: gpiod = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pci-keystone.c: gpiod = devm_gpiod_get_optional(dev, "reset",
drivers/pci/controller/dwc/pci-meson.c: mp->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-dw-rockchip.c: rockchip->rst_gpio = devm_gpiod_get_optional(&pdev->dev, "reset",
drivers/pci/controller/dwc/pcie-fu740.c: afp->reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-intel-gw.c: pcie->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-keembay.c: pcie->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
drivers/pci/controller/dwc/pcie-qcom-ep.c: pcie_ep->reset = devm_gpiod_get(dev, "reset", GPIOD_IN);
drivers/pci/controller/dwc/pcie-tegra194.c: pcie->pex_rst_gpiod = devm_gpiod_get(pcie->dev, "reset", GPIOD_IN);
drivers/pci/controller/pci-aardvark.c: pcie->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/pci-tegra.c: "reset",
drivers/pci/controller/pcie-apple.c: "reset", 0, GPIOD_OUT_LOW, "PERST#");
drivers/pci/controller/pcie-mt7621.c: port->gpio_rst = devm_gpiod_get_index_optional(dev, "reset", slot,
So majority have reset lines attached to the "main" node and thus can use
devm_gpiod_get_optional().
Thanks.
--
Dmitry
WARNING: multiple messages have this Message-ID (diff)
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Pali Rohár" <pali@kernel.org>
Cc: "Thierry Reding" <thierry.reding@gmail.com>,
"Mark Brown" <broonie@kernel.org>,
"Matti Vaittinen" <mazziesaccount@gmail.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Claudiu Beznea" <claudiu.beznea@microchip.com>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Wim Van Sebroeck" <wim@linux-watchdog.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Guenter Roeck" <linux@roeck-us.net>,
"Miquel Raynal" <miquel.raynal@bootlin.com>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Felipe Balbi" <balbi@kernel.org>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Vignesh Raghavendra" <vigneshr@ti.com>,
"Daniel Vetter" <daniel@ffwll.ch>,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
"Marc Zyngier" <maz@kernel.org>,
"Richard Weinberger" <richard@nod.at>,
"David Airlie" <airlied@linux.ie>,
"Nicolas Ferre" <nicolas.ferre@microchip.com>,
"Alyssa Rosenzweig" <alyssa@rosenzweig.io>,
"Bartosz Golaszewski" <brgl@bgdev.pl>,
"Jonathan Hunter" <jonathanh@nvidia.com>,
"Rob Herring" <robh@kernel.org>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
"Bjorn Helgaas" <bhelgaas@google.com>,
linux-watchdog@vger.kernel.org, linux-usb@vger.kernel.org,
linux-gpio@vger.kernel.org, linux-pci@vger.kernel.org,
linux-tegra@vger.kernel.org, linux-mtd@lists.infradead.org,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v1 06/11] PCI: aardvark: switch to using devm_gpiod_get_optional()
Date: Mon, 5 Sep 2022 16:18:44 -0700 [thread overview]
Message-ID: <YxaD1Luja4T/osP5@google.com> (raw)
In-Reply-To: <20220905231010.ojl4i4ph27qtebiy@pali>
On Tue, Sep 06, 2022 at 01:10:10AM +0200, Pali Rohár wrote:
> On Monday 05 September 2022 15:54:53 Dmitry Torokhov wrote:
> > On Mon, Sep 05, 2022 at 09:00:46AM +0200, Pali Rohár wrote:
> > > On Sunday 04 September 2022 23:30:58 Dmitry Torokhov wrote:
> > > > I would like to stop exporting OF-specific devm_gpiod_get_from_of_node()
> > > > so that gpiolib can be cleaned a bit, so let's switch to the generic
> > > > device property API.
> > > >
> > > > I believe that the only reason the driver, instead of the standard
> > > > devm_gpiod_get_optional(), used devm_gpiod_get_from_of_node() is
> > > > because it wanted to set up a pretty consumer name for the GPIO,
> > >
> > > IIRC consumer name is not used at all.
> > >
> > > The reason was to specify full name of DTS property, for easier
> > > identification of the code. DTS property is "reset-gpios" but API
> > > specify only "reset".
> >
> > I see. Do you want me to reset the patch with updated desctiption as to
> > the reason devm_gpiod_get_from_of_node() was used?
>
> I think it is fine. So add my:
>
> Acked-by: Pali Rohár <pali@kernel.org>
>
> Anyway as another improvement for future I would suggest some API
> function with _optional_ logic, so it could be used for more PCIe
I think we need to see how many are attaching reset lines to subnodes.
If there are multiple then I agree we could add _optional. So far I see:
dtor@dtor-ws:~/kernel/linux-next (gpiod_get_from_of_node-remove)$ git grep '"reset"' -- drivers/pci/controller/
drivers/pci/controller/cadence/pci-j721e.c: gpiod = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pci-keystone.c: gpiod = devm_gpiod_get_optional(dev, "reset",
drivers/pci/controller/dwc/pci-meson.c: mp->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-dw-rockchip.c: rockchip->rst_gpio = devm_gpiod_get_optional(&pdev->dev, "reset",
drivers/pci/controller/dwc/pcie-fu740.c: afp->reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-intel-gw.c: pcie->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-keembay.c: pcie->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
drivers/pci/controller/dwc/pcie-qcom-ep.c: pcie_ep->reset = devm_gpiod_get(dev, "reset", GPIOD_IN);
drivers/pci/controller/dwc/pcie-tegra194.c: pcie->pex_rst_gpiod = devm_gpiod_get(pcie->dev, "reset", GPIOD_IN);
drivers/pci/controller/pci-aardvark.c: pcie->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/pci-tegra.c: "reset",
drivers/pci/controller/pcie-apple.c: "reset", 0, GPIOD_OUT_LOW, "PERST#");
drivers/pci/controller/pcie-mt7621.c: port->gpio_rst = devm_gpiod_get_index_optional(dev, "reset", slot,
So majority have reset lines attached to the "main" node and thus can use
devm_gpiod_get_optional().
Thanks.
--
Dmitry
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
WARNING: multiple messages have this Message-ID (diff)
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Pali Rohár" <pali@kernel.org>
Cc: "Krzysztof Wilczyński" <kw@linux.com>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Vignesh Raghavendra" <vigneshr@ti.com>,
"David Airlie" <airlied@linux.ie>,
linux-pci@vger.kernel.org,
"Linus Walleij" <linus.walleij@linaro.org>,
"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
dri-devel@lists.freedesktop.org,
"Liam Girdwood" <lgirdwood@gmail.com>,
linux-tegra@vger.kernel.org,
"Thierry Reding" <thierry.reding@gmail.com>,
linux-mtd@lists.infradead.org,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
"Miquel Raynal" <miquel.raynal@bootlin.com>,
linux-stm32@st-md-mailman.stormreply.com,
"Alyssa Rosenzweig" <alyssa@rosenzweig.io>,
linux-watchdog@vger.kernel.org, "Rob Herring" <robh@kernel.org>,
"Marc Zyngier" <maz@kernel.org>,
"Bartosz Golaszewski" <brgl@bgdev.pl>,
"Jonathan Hunter" <jonathanh@nvidia.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Guenter Roeck" <linux@roeck-us.net>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
"Matti Vaittinen" <mazziesaccount@gmail.com>,
linux-gpio@vger.kernel.org, "Mark Brown" <broonie@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Wim Van Sebroeck" <wim@linux-watchdog.org>,
linux-arm-kernel@lists.infradead.org,
"Felipe Balbi" <balbi@kernel.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
"Daniel Vetter" <daniel@ffwll.ch>,
"Richard Weinberger" <richard@nod.at>,
"Claudiu Beznea" <claudiu.beznea@microchip.com>
Subject: Re: [PATCH v1 06/11] PCI: aardvark: switch to using devm_gpiod_get_optional()
Date: Mon, 5 Sep 2022 16:18:44 -0700 [thread overview]
Message-ID: <YxaD1Luja4T/osP5@google.com> (raw)
In-Reply-To: <20220905231010.ojl4i4ph27qtebiy@pali>
On Tue, Sep 06, 2022 at 01:10:10AM +0200, Pali Rohár wrote:
> On Monday 05 September 2022 15:54:53 Dmitry Torokhov wrote:
> > On Mon, Sep 05, 2022 at 09:00:46AM +0200, Pali Rohár wrote:
> > > On Sunday 04 September 2022 23:30:58 Dmitry Torokhov wrote:
> > > > I would like to stop exporting OF-specific devm_gpiod_get_from_of_node()
> > > > so that gpiolib can be cleaned a bit, so let's switch to the generic
> > > > device property API.
> > > >
> > > > I believe that the only reason the driver, instead of the standard
> > > > devm_gpiod_get_optional(), used devm_gpiod_get_from_of_node() is
> > > > because it wanted to set up a pretty consumer name for the GPIO,
> > >
> > > IIRC consumer name is not used at all.
> > >
> > > The reason was to specify full name of DTS property, for easier
> > > identification of the code. DTS property is "reset-gpios" but API
> > > specify only "reset".
> >
> > I see. Do you want me to reset the patch with updated desctiption as to
> > the reason devm_gpiod_get_from_of_node() was used?
>
> I think it is fine. So add my:
>
> Acked-by: Pali Rohár <pali@kernel.org>
>
> Anyway as another improvement for future I would suggest some API
> function with _optional_ logic, so it could be used for more PCIe
I think we need to see how many are attaching reset lines to subnodes.
If there are multiple then I agree we could add _optional. So far I see:
dtor@dtor-ws:~/kernel/linux-next (gpiod_get_from_of_node-remove)$ git grep '"reset"' -- drivers/pci/controller/
drivers/pci/controller/cadence/pci-j721e.c: gpiod = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pci-keystone.c: gpiod = devm_gpiod_get_optional(dev, "reset",
drivers/pci/controller/dwc/pci-meson.c: mp->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-dw-rockchip.c: rockchip->rst_gpio = devm_gpiod_get_optional(&pdev->dev, "reset",
drivers/pci/controller/dwc/pcie-fu740.c: afp->reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-intel-gw.c: pcie->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-keembay.c: pcie->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
drivers/pci/controller/dwc/pcie-qcom-ep.c: pcie_ep->reset = devm_gpiod_get(dev, "reset", GPIOD_IN);
drivers/pci/controller/dwc/pcie-tegra194.c: pcie->pex_rst_gpiod = devm_gpiod_get(pcie->dev, "reset", GPIOD_IN);
drivers/pci/controller/pci-aardvark.c: pcie->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/pci-tegra.c: "reset",
drivers/pci/controller/pcie-apple.c: "reset", 0, GPIOD_OUT_LOW, "PERST#");
drivers/pci/controller/pcie-mt7621.c: port->gpio_rst = devm_gpiod_get_index_optional(dev, "reset", slot,
So majority have reset lines attached to the "main" node and thus can use
devm_gpiod_get_optional().
Thanks.
--
Dmitry
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Pali Rohár" <pali@kernel.org>
Cc: "Krzysztof Wilczyński" <kw@linux.com>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Vignesh Raghavendra" <vigneshr@ti.com>,
"David Airlie" <airlied@linux.ie>,
linux-pci@vger.kernel.org,
"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
dri-devel@lists.freedesktop.org,
"Liam Girdwood" <lgirdwood@gmail.com>,
linux-tegra@vger.kernel.org,
"Thierry Reding" <thierry.reding@gmail.com>,
linux-mtd@lists.infradead.org,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
"Miquel Raynal" <miquel.raynal@bootlin.com>,
linux-stm32@st-md-mailman.stormreply.com,
"Alyssa Rosenzweig" <alyssa@rosenzweig.io>,
linux-watchdog@vger.kernel.org, "Marc Zyngier" <maz@kernel.org>,
"Bartosz Golaszewski" <brgl@bgdev.pl>,
"Jonathan Hunter" <jonathanh@nvidia.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Guenter Roeck" <linux@roeck-us.net>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
"Matti Vaittinen" <mazziesaccount@gmail.com>,
linux-gpio@vger.kernel.org, "Mark Brown" <broonie@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Wim Van Sebroeck" <wim@linux-watchdog.org>,
linux-arm-kernel@lists.infradead.org,
"Felipe Balbi" <balbi@kernel.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org,
"Nicolas Ferre" <nicolas.ferre@microchip.com>,
linux-kernel@vger.kernel.org,
"Richard Weinberger" <richard@nod.at>,
"Claudiu Beznea" <claudiu.beznea@microchip.com>
Subject: Re: [PATCH v1 06/11] PCI: aardvark: switch to using devm_gpiod_get_optional()
Date: Mon, 5 Sep 2022 16:18:44 -0700 [thread overview]
Message-ID: <YxaD1Luja4T/osP5@google.com> (raw)
In-Reply-To: <20220905231010.ojl4i4ph27qtebiy@pali>
On Tue, Sep 06, 2022 at 01:10:10AM +0200, Pali Rohár wrote:
> On Monday 05 September 2022 15:54:53 Dmitry Torokhov wrote:
> > On Mon, Sep 05, 2022 at 09:00:46AM +0200, Pali Rohár wrote:
> > > On Sunday 04 September 2022 23:30:58 Dmitry Torokhov wrote:
> > > > I would like to stop exporting OF-specific devm_gpiod_get_from_of_node()
> > > > so that gpiolib can be cleaned a bit, so let's switch to the generic
> > > > device property API.
> > > >
> > > > I believe that the only reason the driver, instead of the standard
> > > > devm_gpiod_get_optional(), used devm_gpiod_get_from_of_node() is
> > > > because it wanted to set up a pretty consumer name for the GPIO,
> > >
> > > IIRC consumer name is not used at all.
> > >
> > > The reason was to specify full name of DTS property, for easier
> > > identification of the code. DTS property is "reset-gpios" but API
> > > specify only "reset".
> >
> > I see. Do you want me to reset the patch with updated desctiption as to
> > the reason devm_gpiod_get_from_of_node() was used?
>
> I think it is fine. So add my:
>
> Acked-by: Pali Rohár <pali@kernel.org>
>
> Anyway as another improvement for future I would suggest some API
> function with _optional_ logic, so it could be used for more PCIe
I think we need to see how many are attaching reset lines to subnodes.
If there are multiple then I agree we could add _optional. So far I see:
dtor@dtor-ws:~/kernel/linux-next (gpiod_get_from_of_node-remove)$ git grep '"reset"' -- drivers/pci/controller/
drivers/pci/controller/cadence/pci-j721e.c: gpiod = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pci-keystone.c: gpiod = devm_gpiod_get_optional(dev, "reset",
drivers/pci/controller/dwc/pci-meson.c: mp->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-dw-rockchip.c: rockchip->rst_gpio = devm_gpiod_get_optional(&pdev->dev, "reset",
drivers/pci/controller/dwc/pcie-fu740.c: afp->reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-intel-gw.c: pcie->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/dwc/pcie-keembay.c: pcie->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
drivers/pci/controller/dwc/pcie-qcom-ep.c: pcie_ep->reset = devm_gpiod_get(dev, "reset", GPIOD_IN);
drivers/pci/controller/dwc/pcie-tegra194.c: pcie->pex_rst_gpiod = devm_gpiod_get(pcie->dev, "reset", GPIOD_IN);
drivers/pci/controller/pci-aardvark.c: pcie->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
drivers/pci/controller/pci-tegra.c: "reset",
drivers/pci/controller/pcie-apple.c: "reset", 0, GPIOD_OUT_LOW, "PERST#");
drivers/pci/controller/pcie-mt7621.c: port->gpio_rst = devm_gpiod_get_index_optional(dev, "reset", slot,
So majority have reset lines attached to the "main" node and thus can use
devm_gpiod_get_optional().
Thanks.
--
Dmitry
next prev parent reply other threads:[~2022-09-05 23:18 UTC|newest]
Thread overview: 243+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-05 6:30 [PATCH v1 00/11] Get rid of [devm_]gpiod_get_from_of_node() public APIs Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` [PATCH v1 01/11] PCI: tegra: switch to using devm_fwnode_gpiod_get Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 7:19 ` Pali Rohár
2022-09-05 7:19 ` Pali Rohár
2022-09-05 7:19 ` Pali Rohár
2022-09-05 7:19 ` Pali Rohár
2022-09-05 10:49 ` Andy Shevchenko
2022-09-05 10:49 ` Andy Shevchenko
2022-09-05 10:49 ` Andy Shevchenko
2022-09-05 10:49 ` Andy Shevchenko
2022-09-05 10:53 ` Pali Rohár
2022-09-05 10:53 ` Pali Rohár
2022-09-05 10:53 ` Pali Rohár
2022-09-05 10:53 ` Pali Rohár
2022-09-05 10:54 ` Andy Shevchenko
2022-09-05 10:54 ` Andy Shevchenko
2022-09-05 10:54 ` Andy Shevchenko
2022-09-05 10:54 ` Andy Shevchenko
2022-09-05 10:54 ` Andy Shevchenko
2022-09-05 10:54 ` Andy Shevchenko
2022-09-05 10:54 ` Andy Shevchenko
2022-09-05 10:54 ` Andy Shevchenko
2022-09-05 22:49 ` Dmitry Torokhov
2022-09-05 22:49 ` Dmitry Torokhov
2022-09-05 22:49 ` Dmitry Torokhov
2022-09-05 22:49 ` Dmitry Torokhov
2022-09-08 8:13 ` Linus Walleij
2022-09-08 8:13 ` Linus Walleij
2022-09-08 8:13 ` Linus Walleij
2022-09-08 8:13 ` Linus Walleij
2022-09-05 6:30 ` [PATCH v1 02/11] drm/tegra: " Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 10:57 ` Andy Shevchenko
2022-09-05 10:57 ` Andy Shevchenko
2022-09-05 10:57 ` Andy Shevchenko
2022-09-05 10:57 ` Andy Shevchenko
2022-09-05 19:37 ` Dmitry Torokhov
2022-09-05 19:37 ` Dmitry Torokhov
2022-09-05 19:37 ` Dmitry Torokhov
2022-09-05 19:37 ` Dmitry Torokhov
2022-09-05 21:03 ` Linus Walleij
2022-09-05 21:03 ` Linus Walleij
2022-09-05 21:03 ` Linus Walleij
2022-09-05 21:03 ` Linus Walleij
2022-09-05 22:08 ` Dmitry Torokhov
2022-09-05 22:08 ` Dmitry Torokhov
2022-09-05 22:08 ` Dmitry Torokhov
2022-09-05 22:08 ` Dmitry Torokhov
2022-09-05 6:30 ` [PATCH v1 03/11] mtd: rawnand: stm32_fmc2: switch to using devm_fwnode_gpiod_get() Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-20 8:33 ` Miquel Raynal
2022-09-20 8:33 ` Miquel Raynal
2022-09-20 8:33 ` Miquel Raynal
2022-09-20 8:33 ` Miquel Raynal
2022-09-05 6:30 ` [PATCH v1 04/11] usb: phy: tegra: switch to using devm_gpiod_get() Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 10:59 ` Andy Shevchenko
2022-09-05 10:59 ` Andy Shevchenko
2022-09-05 10:59 ` Andy Shevchenko
2022-09-05 10:59 ` Andy Shevchenko
2022-09-05 19:39 ` Dmitry Torokhov
2022-09-05 19:39 ` Dmitry Torokhov
2022-09-05 19:39 ` Dmitry Torokhov
2022-09-05 19:39 ` Dmitry Torokhov
2022-09-05 19:41 ` Andy Shevchenko
2022-09-05 19:41 ` Andy Shevchenko
2022-09-05 19:41 ` Andy Shevchenko
2022-09-05 19:41 ` Andy Shevchenko
2022-09-05 19:51 ` Dmitry Torokhov
2022-09-05 19:51 ` Dmitry Torokhov
2022-09-05 19:51 ` Dmitry Torokhov
2022-09-05 19:51 ` Dmitry Torokhov
2022-09-05 19:55 ` Andy Shevchenko
2022-09-05 19:55 ` Andy Shevchenko
2022-09-05 19:55 ` Andy Shevchenko
2022-09-05 19:55 ` Andy Shevchenko
2022-09-05 22:07 ` Guenter Roeck
2022-09-05 22:07 ` Guenter Roeck
2022-09-05 22:07 ` Guenter Roeck
2022-09-05 22:07 ` Guenter Roeck
2022-09-06 12:27 ` Andy Shevchenko
2022-09-06 12:27 ` Andy Shevchenko
2022-09-06 12:27 ` Andy Shevchenko
2022-09-06 12:27 ` Andy Shevchenko
2022-09-05 6:30 ` [PATCH v1 05/11] usb: gadget: udc: at91: switch to using fwnode_gpiod_get_index() Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` [PATCH v1 06/11] PCI: aardvark: switch to using devm_gpiod_get_optional() Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 7:00 ` Pali Rohár
2022-09-05 7:00 ` Pali Rohár
2022-09-05 7:00 ` Pali Rohár
2022-09-05 7:00 ` Pali Rohár
2022-09-05 10:47 ` Andy Shevchenko
2022-09-05 10:47 ` Andy Shevchenko
2022-09-05 10:47 ` Andy Shevchenko
2022-09-05 10:47 ` Andy Shevchenko
2022-09-05 19:54 ` Dmitry Torokhov
2022-09-05 19:54 ` Dmitry Torokhov
2022-09-05 19:54 ` Dmitry Torokhov
2022-09-05 19:54 ` Dmitry Torokhov
2022-09-05 22:54 ` Dmitry Torokhov
2022-09-05 22:54 ` Dmitry Torokhov
2022-09-05 22:54 ` Dmitry Torokhov
2022-09-05 22:54 ` Dmitry Torokhov
2022-09-05 23:10 ` Pali Rohár
2022-09-05 23:10 ` Pali Rohár
2022-09-05 23:10 ` Pali Rohár
2022-09-05 23:10 ` Pali Rohár
2022-09-05 23:18 ` Dmitry Torokhov [this message]
2022-09-05 23:18 ` Dmitry Torokhov
2022-09-05 23:18 ` Dmitry Torokhov
2022-09-05 23:18 ` Dmitry Torokhov
2022-09-08 8:32 ` Linus Walleij
2022-09-08 8:32 ` Linus Walleij
2022-09-08 8:32 ` Linus Walleij
2022-09-08 8:32 ` Linus Walleij
2022-09-05 6:30 ` [PATCH v1 07/11] PCI: apple: switch to using fwnode_gpiod_get_index() Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-05 6:30 ` Dmitry Torokhov
2022-09-06 0:19 ` Dmitry Torokhov
2022-09-06 0:19 ` Dmitry Torokhov
2022-09-06 0:19 ` Dmitry Torokhov
2022-09-06 0:19 ` Dmitry Torokhov
2022-09-08 8:33 ` Linus Walleij
2022-09-08 8:33 ` Linus Walleij
2022-09-08 8:33 ` Linus Walleij
2022-09-08 8:33 ` Linus Walleij
2022-09-05 6:31 ` [PATCH v1 08/11] regulator: bd71815: switch to using devm_fwnode_gpiod_get() Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 9:55 ` Matti Vaittinen
2022-09-05 9:55 ` Matti Vaittinen
2022-09-05 9:55 ` Matti Vaittinen
2022-09-05 9:55 ` Matti Vaittinen
2022-09-05 10:42 ` Andy Shevchenko
2022-09-05 10:42 ` Andy Shevchenko
2022-09-05 10:42 ` Andy Shevchenko
2022-09-05 10:42 ` Andy Shevchenko
2022-09-08 8:10 ` Linus Walleij
2022-09-08 8:10 ` Linus Walleij
2022-09-08 8:10 ` Linus Walleij
2022-09-08 8:10 ` Linus Walleij
2022-09-05 6:31 ` [PATCH v1 09/11] regulator: bd9576: " Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 9:56 ` Matti Vaittinen
2022-09-05 9:56 ` Matti Vaittinen
2022-09-05 9:56 ` Matti Vaittinen
2022-09-05 9:56 ` Matti Vaittinen
2022-09-05 10:40 ` Andy Shevchenko
2022-09-05 10:40 ` Andy Shevchenko
2022-09-05 10:40 ` Andy Shevchenko
2022-09-05 10:40 ` Andy Shevchenko
2022-09-05 13:19 ` Matti Vaittinen
2022-09-05 13:19 ` Matti Vaittinen
2022-09-05 13:19 ` Matti Vaittinen
2022-09-05 13:19 ` Matti Vaittinen
2022-09-05 13:23 ` Andy Shevchenko
2022-09-05 13:23 ` Andy Shevchenko
2022-09-05 13:23 ` Andy Shevchenko
2022-09-05 13:23 ` Andy Shevchenko
2022-09-05 6:31 ` [PATCH v1 10/11] watchdog: bd9576_wdt: " Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 11:09 ` Andy Shevchenko
2022-09-05 11:09 ` Andy Shevchenko
2022-09-05 11:09 ` Andy Shevchenko
2022-09-05 11:09 ` Andy Shevchenko
2022-09-05 15:13 ` Guenter Roeck
2022-09-05 15:13 ` Guenter Roeck
2022-09-05 15:13 ` Guenter Roeck
2022-09-05 15:13 ` Guenter Roeck
2022-09-05 15:21 ` Andy Shevchenko
2022-09-05 15:21 ` Andy Shevchenko
2022-09-05 15:21 ` Andy Shevchenko
2022-09-05 15:21 ` Andy Shevchenko
2022-09-05 15:49 ` Guenter Roeck
2022-09-05 15:49 ` Guenter Roeck
2022-09-05 15:49 ` Guenter Roeck
2022-09-05 15:49 ` Guenter Roeck
2022-09-05 19:47 ` Dmitry Torokhov
2022-09-05 19:47 ` Dmitry Torokhov
2022-09-05 19:47 ` Dmitry Torokhov
2022-09-05 19:47 ` Dmitry Torokhov
2022-09-05 22:09 ` Guenter Roeck
2022-09-05 22:09 ` Guenter Roeck
2022-09-05 22:09 ` Guenter Roeck
2022-09-05 22:09 ` Guenter Roeck
2022-09-07 2:00 ` Dmitry Torokhov
2022-09-07 2:00 ` Dmitry Torokhov
2022-09-07 2:00 ` Dmitry Torokhov
2022-09-07 2:00 ` Dmitry Torokhov
2022-09-08 8:38 ` Linus Walleij
2022-09-08 8:38 ` Linus Walleij
2022-09-08 8:38 ` Linus Walleij
2022-09-08 8:38 ` Linus Walleij
2022-09-05 6:31 ` [PATCH v1 11/11] gpiolib: of: remove [devm_]gpiod_get_from_of_node() APIs Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 6:31 ` Dmitry Torokhov
2022-09-05 10:40 ` Linus Walleij
2022-09-05 10:40 ` Linus Walleij
2022-09-05 10:40 ` Linus Walleij
2022-09-05 10:40 ` Linus Walleij
2022-09-05 7:08 ` [PATCH v1 00/11] Get rid of [devm_]gpiod_get_from_of_node() public APIs Greg Kroah-Hartman
2022-09-05 7:08 ` Greg Kroah-Hartman
2022-09-05 7:08 ` Greg Kroah-Hartman
2022-09-05 7:08 ` Greg Kroah-Hartman
2022-09-05 11:13 ` Andy Shevchenko
2022-09-05 11:13 ` Andy Shevchenko
2022-09-05 11:13 ` Andy Shevchenko
2022-09-05 11:13 ` Andy Shevchenko
2022-09-05 14:54 ` (subset) " Mark Brown
2022-09-05 14:54 ` Mark Brown
2022-09-05 14:54 ` Mark Brown
2022-10-27 13:38 ` Lorenzo Pieralisi
2022-10-27 13:38 ` Lorenzo Pieralisi
2022-10-27 13:38 ` Lorenzo Pieralisi
2022-10-27 13:38 ` Lorenzo Pieralisi
2022-10-28 1:06 ` Dmitry Torokhov
2022-10-28 1:06 ` Dmitry Torokhov
2022-10-28 1:06 ` Dmitry Torokhov
2022-10-28 1:06 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YxaD1Luja4T/osP5@google.com \
--to=dmitry.torokhov@gmail.com \
--cc=airlied@linux.ie \
--cc=alexandre.belloni@bootlin.com \
--cc=alexandre.torgue@foss.st.com \
--cc=alyssa@rosenzweig.io \
--cc=balbi@kernel.org \
--cc=bhelgaas@google.com \
--cc=brgl@bgdev.pl \
--cc=broonie@kernel.org \
--cc=claudiu.beznea@microchip.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=jonathanh@nvidia.com \
--cc=kw@linux.com \
--cc=lgirdwood@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=linux-tegra@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=lpieralisi@kernel.org \
--cc=maz@kernel.org \
--cc=mazziesaccount@gmail.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=miquel.raynal@bootlin.com \
--cc=nicolas.ferre@microchip.com \
--cc=pali@kernel.org \
--cc=richard@nod.at \
--cc=robh@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=vigneshr@ti.com \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.