Re: [PATCH v5 3/7] driver core: platform: provide platform_device_add_software_node()

From: Danilo Krummrich

Date: Tue May 12 2026 - 12:38:28 EST


On Tue May 12, 2026 at 1:59 PM CEST, Bartosz Golaszewski wrote:
> +int platform_device_add_software_node(struct platform_device *pdev,
> + const struct software_node *swnode)
> +{
> + return device_add_software_node(&pdev->dev, swnode);

I think this should be device_create_managed_software_node(), see also [1].

That said, now that I see the resulting code and the corresponding subleties, I
think we should reconsider your (well predicted) "temporary
platform_device_release_full()" idea for -fixes, while iterating this for -next.

[1] https://lore.kernel.org/driver-core/DIGU67TAWF7W.1DWZMO4XAVK7G@xxxxxxxxxx/