[GIT PULL] SPI NOR changes for 7.2

Miquel Raynal miquel.raynal at bootlin.com
Sun Jun 21 08:10:23 PDT 2026


Pulled into mtd/next, thanks!

Miquèl

On 17/06/2026 at 14:00:51 +02, Pratyush Yadav <pratyush at kernel.org> wrote:

> Hi Miquel,
>
> Here are the SPI NOR changes for 7.2.
>
> Regards,
> Pratyush Yadav
>
> The following changes since commit 254f49634ee16a731174d2ae34bc50bd5f45e731:
>
>   Linux 7.1-rc1 (2026-04-26 14:19:00 -0700)
>
> are available in the Git repository at:
>
>   git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-nor/for-7.2
>
> for you to fetch changes up to df415c5e1de0f1aeefacb4e6252ff98d38c04437:
>
>   mtd: spi-nor: spansion: add die erase support in s28hx-t (2026-05-28 15:57:24 +0200)
>
> ----------------------------------------------------------------
> SPI NOR changes for 7.2
>
> Notable changes:
>
> - Big set of cleanups and improvements to the locking support. This
>   series contains some cleanups and bug fixes for code and documentation
>   around write protection. Then support is added for complement locking,
>   which allows finer grained configuration of what is considered locked
>   and unlocked. Then complement locking is enabled on a bunch of Winbond
>   W25 flashes.
>
> - Fix die erase support on Spansion flashes. Die erase is only supported
>   on multi-die flashes, but the die erase opcode was set for all. When
>   the opcode is set, it overrides the default chip erase opcode which
>   should be used for single-die flashes. Only set the opcode on
>   multi-die flashes. Also, the opcode was not set on multi-die s28hx-t
>   flashes. Set it so they can use die-erase correctly.
>
> ----------------------------------------------------------------
> Miquel Raynal (28):
>       mtd: spi-nor: debugfs: Fix the flags list
>       mtd: spi-nor: swp: Improve locking user experience
>       mtd: spi-nor: Drop duplicate Kconfig dependency
>       mtd: spi-nor: Make sure the QE bit is kept enabled if useful
>       mtd: spi-nor: Improve opcodes documentation
>       mtd: spi-nor: debugfs: Align variable access with the rest of the file
>       mtd: spi-nor: debugfs: Enhance output
>       mtd: spi-nor: swp: Explain the MEMLOCK ioctl implementation behaviour
>       mtd: spi-nor: swp: Clarify a comment
>       mtd: spi-nor: swp: Use a pointer for SR instead of a single byte
>       mtd: spi-nor: swp: Create a helper that writes SR, CR and checks
>       mtd: spi-nor: swp: Rename a mask
>       mtd: spi-nor: swp: Create a TB intermediate variable
>       mtd: spi-nor: swp: Create helpers for building the SR register
>       mtd: spi-nor: swp: Simplify checking the locked/unlocked range
>       mtd: spi-nor: swp: Cosmetic changes
>       mtd: spi-nor: Create a local SR cache
>       mtd: spi-nor: debugfs: Add locking support
>       mtd: spi-nor: debugfs: Add a locked sectors map
>       mtd: spi-nor: Add steps for testing locking support
>       mtd: spi-nor: swp: Add support for the complement feature
>       mtd: spi-nor: Add steps for testing locking with CMP
>       mtd: spi-nor: winbond: Add W25H512NWxxAM CMP locking support
>       mtd: spi-nor: winbond: Add W25H01NWxxAM CMP locking support
>       mtd: spi-nor: winbond: Add W25H02NWxxAM CMP locking support
>       mtd: spi-nor: winbond: Add W25Q01NWxxIQ CMP locking support
>       mtd: spi-nor: winbond: Add W25Q01NWxxIM CMP locking support
>       mtd: spi-nor: winbond: Add W25Q02NWxxIM CMP locking support
>
> Takahiro Kuwano (2):
>       mtd: spi-nor: spansion: use die erase for multi-die devices only
>       mtd: spi-nor: spansion: add die erase support in s28hx-t
>
>  Documentation/driver-api/mtd/spi-nor.rst | 170 +++++++++++++++
>  drivers/mtd/spi-nor/Kconfig              |   1 -
>  drivers/mtd/spi-nor/core.c               |  76 ++++++-
>  drivers/mtd/spi-nor/core.h               |  25 ++-
>  drivers/mtd/spi-nor/debugfs.c            |  72 +++++-
>  drivers/mtd/spi-nor/spansion.c           |   7 +-
>  drivers/mtd/spi-nor/swp.c                | 363 ++++++++++++++++++++++++-------
>  drivers/mtd/spi-nor/winbond.c            |  41 +++-
>  include/linux/mtd/spi-nor.h              |   7 +-
>  9 files changed, 671 insertions(+), 91 deletions(-)



More information about the linux-mtd mailing list