]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: spi-nor: winbond: Fix locking support for w25q256jwm
authorEliav Farber <farbere@amazon.com>
Wed, 18 Feb 2026 14:35:21 +0000 (14:35 +0000)
committerPratyush Yadav (Google) <pratyush@kernel.org>
Mon, 30 Mar 2026 14:06:45 +0000 (14:06 +0000)
commit0f0b444be36c098d34a155bbe9e5a2f714a462fb
treee7933ac248b279b77607cc68728753efcd26e6f4
parent94645aa41bf9ecb87c2ce78b1c3405bfb6074a37
mtd: spi-nor: winbond: Fix locking support for w25q256jwm

The Winbond w25q256jwm device supports four Block Protect (BP) bits and
uses Status Register bit 6 as the Top/Bottom (TB) protect bit.

Update the flash parameters by enabling SPI_NOR_4BIT_BP and
SPI_NOR_TB_SR_BIT6. Without these flags, the locking configuration is
incorrect.

Reference:
https://www.winbond.com/hq/support/documentation/levelOne.jsp?__locale=en&DocNo=DA00-W25Q256JW.1

Signed-off-by: Eliav Farber <farbere@amazon.com>
Reviewed-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Pratyush Yadav (Google) <pratyush@kernel.org>
drivers/mtd/spi-nor/winbond.c