]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34d2438812720c53012e9b7fe5fed40c7cd0a2a9
treee2d47a77633bdc9fd64d26b1a6c4f5e7764f26d2
parent8c5c16bdb35ef2db1ea916ff59f35dede98d48f9
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