Thread (61 messages) 61 messages, 10 authors, 2025-07-22

Re: [PATCH v3 06/28] driver core: fw_devlink: Introduce fw_devlink_set_device()

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2025-06-16 11:32:36
Also in: imx, linux-acpi, linux-arm-kernel, linux-clk, linux-cxl, linux-i2c, linux-pci, linux-spi, lkml

On Fri, Jun 13, 2025 at 02:13:49PM -0700, Saravana Kannan wrote:
On Fri, Jun 13, 2025 at 6:49 AM Herve Codina [off-list ref] wrote:
quoted
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.
This should not be set anywhere outside the driver core files. I'll
get to reviewing the series
Strictly speaking I agree with you, but this is not a some driver case,
it's very special and also we have some (ab)users of it.
I can relax the requirement to not set outside of a core functionality,
(like driver core, PCI core) which are tightly related to driver core
one.

Just my 2c.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help