Re: [PATCH 20/23] usb: chipidea: use platform_device_set_of_node_from_dev()
From: Bartosz Golaszewski
Date: Thu Jun 04 2026 - 08:42:10 EST
On Tue, 2 Jun 2026 23:49:29 +0200, Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> said:
> 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?
>
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