[lkml]   [2022]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: fw_devlink=on breaks probing devices when of_platform_populate() is used

Hi, I have the same problem.

I think the root of the problem was the choice of 'compatible'
device tree property to marking mtd partition node as a nvmem provider.

This property used only inside 'mtd_nvmem_add' function to setup
'no_of_node' flag.

> config.no_of_node = !of_device_is_compatible(node, "nvmem-cells");

This is how this flag processed by 'nvmem_register' function.

> if (config->of_node)
> nvmem->dev.of_node = config->of_node;
> else if (!config->no_of_node)
> nvmem->dev.of_node = config->dev->of_node;

Thats all, there is no such driver which compatible with 'nvmem-cells'.

So, maybe we should change the 'compatible' property to something else?

 \ /
  Last update: 2022-12-11 09:47    [W:0.116 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site