Re: [PATCH 20/23] usb: chipidea: use platform_device_set_of_node_from_dev()

From
Bartosz Golaszewski <brgl@kernel.org>
Date
2026-06-04 12:34:27
Also in
dri-devel, driver-core, imx, intel-xe, linux-arm-msm, linux-devicetree, linux-i2c, linux-iommu, linux-mips, linux-pm, linux-sound, linux-usb, lkml, netdev, platform-driver-x86
Reply to
Andy Shevchenko, 2026-06-02
On Tue, 2 Jun 2026 23:49:29 +0200, Andy Shevchenko
[off-list ref] said:
On Thu, May 21, 2026 at 10:36:43AM +0200, Bartosz Golaszewski wrote:
quoted
Ahead of reworking the reference counting logic for platform devices,
encapsulate the assignment of the OF node from another device for
dynamically allocated platform devices with the provided helper.
...
quoted
 	pdev->dev.parent = dev;
-	device_set_of_node_from_dev(&pdev->dev, dev);
+	platform_device_set_of_node_from_dev(pdev, dev);
Why do they even do that? Do they have a USB connected pin control?
I don't know. I can't test it so I don't want to break it. If they don't need
it, the person who can test it, can remove it later.

Bart
Thread (58 messages) 58 messages, 14 authors, last reply 2026-06-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help