[PATCH] mtd: Create partname and partid debug files for child MTDs

Petr Malat oss at malat.biz
Thu May 6 07:57:57 PDT 2021


Hi!
On Fri, Apr 30, 2021 at 09:02:14AM +0200, Michael Walle wrote:
> > Partname and partid are set by the upper driver (spi-nor) on the master
> > MTD. If this MTD is partitioned and CONFIG_MTD_PARTITIONED_MASTER is
> > disabled, the master MTD is not instantiated and partname and partid
> > aren't available to the userspace.
> 
> You might have a look at:
> https://lore.kernel.org/linux-mtd/20210429155713.28808-1-michael@walle.cc/
Thanks, I used it to replace my hack to dump SFDP with print_hex_dump.
As it seems I'm not the only one interested in SFDP in userspace I
have pushed my SFDP parser to github https://github.com/petris/sfdp-parser

> This is just for spi-nor though, but attaches the properties to the
> flash device instead of the mtd device.
Currently, no other driver is using it. If your change makes it in,
debugfs attributes can be removed (or extended to cover other drivers
as well).
  Petr



More information about the linux-mtd mailing list