linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] mtd: spi-nor: generic flash driver
@ 2022-08-10 22:06 Michael Walle
  2022-08-10 22:06 ` [PATCH v2 1/7] mtd: spi-nor: hide jedec_id sysfs attribute if not present Michael Walle
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Michael Walle @ 2022-08-10 22:06 UTC (permalink / raw)
  To: Tudor Ambarus, Pratyush Yadav
  Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	linux-kernel, linux-mtd, Michael Walle

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


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-11-21 13:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-10 22:06 [PATCH v2 0/7] mtd: spi-nor: generic flash driver Michael Walle
2022-08-10 22:06 ` [PATCH v2 1/7] mtd: spi-nor: hide jedec_id sysfs attribute if not present Michael Walle
2022-08-10 22:06 ` [PATCH v2 2/7] mtd: spi-nor: sysfs: hide manufacturer if it is not set Michael Walle
2022-08-10 22:06 ` [PATCH v2 3/7] mtd: spi-nor: remember full JEDEC flash ID Michael Walle
2022-08-10 22:06 ` [PATCH v2 4/7] mtd: spi-nor: move function declaration out of sfdp.h Michael Walle
2022-08-10 22:06 ` [PATCH v2 5/7] mtd: spi-nor: fix select_uniform_erase to skip 0 erase size Michael Walle
2022-08-10 22:06 ` [PATCH v2 6/7] mtd: spi-nor: add generic flash driver Michael Walle
2022-11-01  8:46   ` Tudor.Ambarus
2022-11-07 14:42     ` Tudor.Ambarus
2022-11-07 18:22     ` Michael Walle
2022-11-21 13:35   ` Tudor.Ambarus
2022-08-10 22:06 ` [PATCH v2 7/7] mtd: spi-nor: sysfs: print JEDEC ID for " Michael Walle
2022-11-21 13:41 ` [PATCH v2 0/7] mtd: spi-nor: " Tudor Ambarus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).