Re: [PATCH v11 06/10] PCI: of: Use fw_devlink_set_device()
From: Bartosz Golaszewski
Date: Wed Sep 09 2026 - 07:43:27 EST
On Wed, 9 Sep 2026 10:01:05 +0200, Herve Codina <herve.codina@xxxxxxxxxxx> said:
> The code set directly fwnode.dev field.
>
> Use the dedicated fw_devlink_set_device() helper to perform this
> operation.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Herve Codina <herve.codina@xxxxxxxxxxx>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> Acked-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
> Reviewed-by: Richard Cheng <icheng@xxxxxxxxxx>
> Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
> ---
> Cc stable because used by other patches with Fixes + Cc stable
> ---
> drivers/pci/of.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pci/of.c b/drivers/pci/of.c
> index a51dff91b196..0f45c5b72458 100644
> --- a/drivers/pci/of.c
> +++ b/drivers/pci/of.c
> @@ -882,7 +882,7 @@ void of_pci_make_host_bridge_node(struct pci_host_bridge *bridge)
> * bus. Avoid any new device creation.
> */
> of_node_set_flag(np, OF_POPULATED);
> - np->fwnode.dev = &bridge->dev;
> + fw_devlink_set_device(&np->fwnode, &bridge->dev);
> fwnode_dev_initialized(&np->fwnode, true);
>
> ret = of_changeset_apply(cset);
> --
> 2.55.0
>
>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>