[PATCH v2 0/7] mtd: spi-nor: generic flash driver

From: Michael Walle
Date: Wed Aug 10 2022 - 18:07:18 EST


Add a generic flash driver, which is used when we don't find a matching
flash in our database. All the basic features of a flash can be discovered
by SFDP and most (if not all) newer flashes support it.

changes since v1:
- fix doc prototype mistake reported by the kernel test robot
- preset page_size to 256 to support flashes which just have
SFDP data corresponding to JESD216A
- add new patch
mtd: spi-nor: fix select_uniform_erase to skip 0 erase size
- add function doc to explain wanted_size=0 in
spi_nor_select_uniform_erase()

Michael Walle (7):
mtd: spi-nor: hide jedec_id sysfs attribute if not present
mtd: spi-nor: sysfs: hide manufacturer if it is not set
mtd: spi-nor: remember full JEDEC flash ID
mtd: spi-nor: move function declaration out of sfdp.h
mtd: spi-nor: fix select_uniform_erase to skip 0 erase size
mtd: spi-nor: add generic flash driver
mtd: spi-nor: sysfs: print JEDEC ID for generic flash driver

.../ABI/testing/sysfs-bus-spi-devices-spi-nor | 6 ++++
drivers/mtd/spi-nor/core.c | 35 +++++++++++++++++--
drivers/mtd/spi-nor/core.h | 3 ++
drivers/mtd/spi-nor/debugfs.c | 2 +-
drivers/mtd/spi-nor/sfdp.c | 27 ++++++++++++++
drivers/mtd/spi-nor/sfdp.h | 2 --
drivers/mtd/spi-nor/sysfs.c | 20 ++++++++++-
include/linux/mtd/spi-nor.h | 3 ++
8 files changed, 92 insertions(+), 6 deletions(-)

--
2.30.2