Re: [PATCH v5 07/28] driver core: fw_devlink: Introduce fw_devlink_set_device()
From: Herve Codina
Date: Tue Mar 03 2026 - 09:14:37 EST
Hi Jonathan,
On Mon, 2 Mar 2026 12:23:36 +0000
Jonathan Cameron <jonathan.cameron@xxxxxxxxxx> wrote:
> On Fri, 27 Feb 2026 14:54:04 +0100
> Herve Codina <herve.codina@xxxxxxxxxxx> wrote:
>
> > Setting fwnode->dev is specific to fw_devlink.
> >
> > In order to avoid having a direct 'fwnode->dev = dev;' in several
> > place in the kernel, introduce fw_devlink_set_device() helper to perform
> > this operation.
> >
> I don't mind the helper, but the description could do with a little
> detail on why. Is it just to avoid visibility of internal details, or
> is there a stronger reason?
I think the idea was to avoid visibility.
It cames from feedback received on my first iteration
https://lore.kernel.org/all/20250408145139.293c79a2@xxxxxxxxxxx/
I found the idea relevant and so I did the patch.
Best regards,
Hervé