# Re: \[PATCH 20/23\] usb: chipidea: use platform\_device\_set\_of\_node\_from\_dev()

- From: Andy Shevchenko \<andriy.shevchenko@linux.intel.com\>
- Date: 2026-06-02 21:49:47 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/06/17080204
- Thread: https://ratatoskr.run/netdev/2026/05/17013086/t.md

```text
On Thu, May 21, 2026 at 10:36:43AM +0200, Bartosz Golaszewski wrote:
> 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.

...

>  	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?

-- 
With Best Regards,
Andy Shevchenko


```
