Skip to content
Unverified Commit 1018c94b authored by Zhuohao Lee's avatar Zhuohao Lee Committed by Tudor Ambarus
Browse files

mtd: mtdcore: add debugfs nodes for querying the flash name and id



Currently, we don't have vfs nodes for querying the underlying flash name
and flash id. This information is important especially when we want to
know the flash detail of the defective system. In order to support the
query, we add mtd_debugfs_populate() to create two debugfs nodes
(ie. partname and partid). The upper driver can assign the pointer to
partname and partid before calling mtd_device_register().

Signed-off-by: default avatarZhuohao Lee <zhuohao@chromium.org>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
parent 7ae2227b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment