]> git.hungrycats.org Git - linux/commitdiff
Merge tag 'spi-nor/for-7.4' into mtd/next
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 23 Oct 2026 16:50:09 +0000 (18:50 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 23 Oct 2026 16:50:09 +0000 (18:50 +0200)
SPI NOR changes for 7.4

- Support for new Macronix and (lots of) Winbond flash devices
- The addition of the Winbond flashes was accompanied by a big rewrite of the
  status register handling. There were many small helper functions to enable
  quad I/O mode in many different ways. That's now consolidated in one generic
  function.
- The SFPD handling was reworked. It used to be only parsed for flashes present
  in the in-kernel database which had any of the multi-I/O bit set - or with the
  addition of generic flash driver for any unknown flashes. This left a gap
  where SFDP wasn't handled and it turns out newer flashes (with SFDP support)
  will reused IDs of just these old flashed. With the rework, SFDP is tried to
  be parsed for any flashes and will amend the information which is already
  present in the in-kernel database.
- SFDP size limit was increased to 16KiB. There are flashes which have some
  larger gaps between tables and thus exceeds the former 4KiB limit.
- Flash fixups are getting more and more common. Due to this, the fixups are now
  a separate list (per manufacturer) instead of being attached to a specific
  flash. A new .match() callback makes them more flexible, when one is applied.
- 1-1-8 and 1-8-8 modes are now supported with larger flashes which needs 4byte
  addresses.

1  2 
drivers/mtd/spi-nor/otp.c

Simple merge