mtd: spi-nor: expose internal parameters via debugfs
authorMichael Walle <michael@walle.cc>
Fri, 29 Apr 2022 10:20:18 +0000 (12:20 +0200)
committerPratyush Yadav <p.yadav@ti.com>
Mon, 9 May 2022 11:25:22 +0000 (16:55 +0530)
commit0257be79fc4a16a3252ce80aa13b3640f728c425
treee2d47a77633bdc9fd64d26b1a6c4f5e7764f26d2
parentd92e0dbc6a2686e20b558220376d5d1c6b0d9108
mtd: spi-nor: expose internal parameters via debugfs

There is no way to gather all information to verify support for a new
flash chip. Also if you want to convert an existing flash chip to the
new SFDP parsing, there is not enough information to determine if the
flash will work like before. To ease this development, expose internal
parameters via the debugfs.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220429102018.2361038-2-michael@walle.cc
drivers/mtd/spi-nor/Makefile
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/debugfs.c [new file with mode: 0644]
include/linux/mtd/spi-nor.h