]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: Create partname and partid debug files for child MTDs
authorPetr Malat <oss@malat.biz>
Fri, 30 Apr 2021 06:50:57 +0000 (08:50 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 10 May 2021 10:48:45 +0000 (12:48 +0200)
commitf4a4eb91195a82e677988f8dc99d059bc0064c90
tree01706b0e69fe2502c7357c70f4f4135a941ef630
parentc0fd218f5479981e1813722d0aea135b65ad715b
mtd: Create partname and partid debug files for child MTDs

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@malat.biz>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210430065057.32018-1-oss@malat.biz
drivers/mtd/mtdcore.c