Thread (61 messages) 61 messages, 10 authors, 2022-10-28

Re: [PATCH v1 01/11] PCI: tegra: switch to using devm_fwnode_gpiod_get

From: Pali Rohár <pali@kernel.org>
Date: 2022-09-05 10:54:04
Also in: dri-devel, linux-gpio, linux-pci, linux-tegra, linux-usb, linux-watchdog, lkml

On Monday 05 September 2022 13:49:21 Andy Shevchenko wrote:
On Mon, Sep 5, 2022 at 10:23 AM Pali Rohár [off-list ref] wrote:
quoted
On Sunday 04 September 2022 23:30:53 Dmitry Torokhov wrote:
...
quoted
quoted
-             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.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help