# Re: \[PATCH 08/23\] driver core: platform: provide platform\_device\_set\_of\_node\_from\_dev()

- From: Bartosz Golaszewski \<brgl@kernel.org\>
- Date: 2026-06-04 12:33:34 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/06/17088719
- Thread: https://ratatoskr.run/netdev/2026/05/17013086/t.md

```text
On Tue, 2 Jun 2026 23:44:55 +0200, Andy Shevchenko
[ref] said:
> On Thu, May 21, 2026 at 10:36:31AM +0200, Bartosz Golaszewski wrote:
>> Provide a platform-specific variant of device_set_of_node_from_dev(). In
>> addition to bumping the reference count of the OF node being assigned,
>> it also assigns the fwnode of the platform device.
>
> Can we rather investigate the way how to make that of node reuse thingy
> (which is used solely by pin control) differently and then drop this confusing
> device_set_of_node_from_dev() call altogether?
>

Possibly but I can't do everything in a single series. Let's take it one step
at a time. The goal of this is to make software node handling for platform
devices more correct.

Bart

```
