Commit 69c2758b authored by Zhuohao Lee's avatar Zhuohao Lee Committed by Zhihong Yu
Browse files

FROMLIST: 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

BUG=b:128493566, b:135874154
TEST=checked the partid and partname, the result is expected.

(am from https://patchwork.ozlabs.org/patch/1109228/

)
Change-Id: I2a12becb1c1f7871174cd4ce3fa65062bb4a6dcf
Signed-off-by: default avatarZhuohao Lee <zhuohao@chromium.org>
Signed-off-by: default avatarZhihong Yu <zhihongyu@chromium.org>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1670437


Reviewed-by: default avatarNicolas Boichat <drinkcat@chromium.org>
Reviewed-by: default avatarSean Paul <seanpaul@chromium.org>
(cherry picked from commit 41f755dc8e2b623f258eea9a7554ec0eecdd0edb)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1670442
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
parent 20740627
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment