issue: could not get #nvmem-cell-cells

Michael Walle michael at walle.cc
Tue Jan 10 02:47:08 PST 2023


[+ Rob and Krzysztof]

Am 2023-01-10 11:32, schrieb Alexander Stein:
> Hi Michael,
> 
> Am Dienstag, 10. Januar 2023, 09:12:26 CET schrieb Michael Walle:
>> Hi Peng,
>> 
>> Am 2023-01-10 09:07, schrieb Peng Fan:
>> > I see you have added nvmem-cell-cells support, but with linux-next, I
>> > see error on i.MX8MP-EVK:
>> > [    0.027518] OF: /soc at 0: could not get #nvmem-cell-cells for
>> > /soc at 0/bus at 30000000/efuse at 30350000/unique-id at 8
>> > [    0.027868] OF: /soc at 0/bus at 30000000/tmu at 30260000: could not get
>> > #nvmem-cell-cells for /soc at 0/bus at 30000000/efuse at 30350000/calib at 264
>> > [    0.030338] OF: /soc at 0/bus at 30800000/ethernet at 30be0000: could not
>> > get #nvmem-cell-cells for
>> > /soc at 0/bus at 30000000/efuse at 30350000/mac-address at 90
>> > [    0.030511] OF: /soc at 0/bus at 30800000/ethernet at 30bf0000: could not
>> > get #nvmem-cell-cells for
>> > /soc at 0/bus at 30000000/efuse at 30350000/mac-address at 96
>> >
>> > Do you have ideas?
>> 
>> Do you have [1] applied? It is already in -next but just to be sure.
> 
> This patch does fix requesting a non-existing io_impedance_ctrl nvmem 
> cell.
> But these errors are about missing '#nvmem-cell-cells' properties.
> IIRC there should be another patch assuming '#nvmem-cell-cells = <0>' 
> by
> default.

Yeah, I'm just looking at that. As I said, this should have been 
addressed
with my commit 7850f3f4da30 (of: base: add 
of_parse_phandle_with_optional_args()).
But it seems to be broken/not working as intended :/

It seems that we have to pass the information wether the cells_name is
optional to of_phandle_iterator_init().

-michael



More information about the linux-arm-kernel mailing list