]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mtd: spi-nor: add initial sysfs support
authorMichael Walle <michael@walle.cc>
Mon, 3 May 2021 15:56:51 +0000 (17:56 +0200)
committerVignesh Raghavendra <vigneshr@ti.com>
Tue, 15 Jun 2021 17:48:32 +0000 (23:18 +0530)
commit36ac0228626585ba718186b9db2e5986a198152c
treedb75c7d3852653575d4b1fbdc97400bb703c407e
parent65b6d89d45a77256b743f421d109d469baefa688
mtd: spi-nor: add initial sysfs support

Add support to show the manufacturer, the partname and JEDEC identifier
as well as to dump the SFDP table. Not all flashes list their SFDP table
contents in their datasheet. So having that is useful. It might also be
helpful in bug reports from users.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Acked-by: Pratyush Yadav <p.yadav@ti.com>
Documentation/ABI/testing/sysfs-bus-spi-devices-spi-nor [new file with mode: 0644]
drivers/mtd/spi-nor/Makefile
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/sysfs.c [new file with mode: 0644]