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

Miquel Raynal miquel.raynal at bootlin.com
Mon May 10 03:43:35 PDT 2021


On Fri, 2021-04-30 at 06:50:57 UTC, Petr Malat 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.
> 
> Always read the partname and partid from the master MTD, they describe
> the HW, which can't differ between master and its children.
> 
> Signed-off-by: Petr Malat <oss at malat.biz>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list