Am 2022-07-21 11:46, schrieb Biju Das:
> root@smarc-rzg2ul:~#
nice a smarc board :)
>
> root@smarc-rzg2ul:~# cat
> /sys/devices/platform/soc/10060000.spi/rpc-if-spi/spi_master/spi1/spi1
> .0/spi-nor/manufacturer
> cat:
> /sys/devices/platform/soc/10060000.spi/rpc-if-spi/spi_master/spi1/spi1
> .0/spi-nor/manufacturer: No such file or directory
>
> This result is not matching atmel-> cat:
> /sys/devices/platform/soc/10060000.spi/rpc-if-spi/spi_master/spi1/spi1
> .0/spi-nor/manufacturer: No such file or directory
here we could introduce a generic name as well.
OK.
Michael: Do you have any plan to add generic name for manufacturer
as completeness?
Why would we need that one? There is no manufacturer. So I don't
see why we should add a fake one. The partname is debatable, too.
IMHO if we really want to get rid of the "dummy" tables in the kernel,
the userspace (mtdutils for example) could parse the jedec id and
sfdp and find the manufacturer and partnumer. But TBH, I don't know
if that is really an important information.
Implementation wise, right now, it's quite a hack how the
manufacturer is set. It gets already set early in
spi_nor_match_name(), while the actual flash info will get set
later in the call chain.
-michael