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

mtd: spi-nor: enable the debugfs for the partname and partid



This patch adds spi_nor_debugfs_init() for the debugfs initialization.
With this patch, we can read the partname and partid through the
debugfs.

The output of new debugfs nodes on my device are:
cat /sys/kernel/debug/mtd/mtd0/partid
spi-nor:ef6017
cat /sys/kernel/debug/mtd/mtd0/partname
w25q64dw

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 1018c94b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment