]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mtd: spi-nor: winbond: Add W25H01NWxxAM CMP locking support
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 26 May 2026 14:56:48 +0000 (16:56 +0200)
committerPratyush Yadav <pratyush@kernel.org>
Wed, 27 May 2026 12:36:03 +0000 (14:36 +0200)
This chip has support for the locking complement (CMP) feature. Add
the relevant bit to enable it.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
drivers/mtd/spi-nor/winbond.c

index ef73c855cedbfaed1567bbdbfba6b99258b74b5e..7628fa7fb64f6ab43023e5aa734e5f490f739c1f 100644 (file)
@@ -365,7 +365,8 @@ static const struct flash_info winbond_nor_parts[] = {
        }, {
                /* W25H01NWxxAM */
                .id = SNOR_ID(0xef, 0xa0, 0x21),
-               .flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
+               .flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 |
+                        SPI_NOR_4BIT_BP | SPI_NOR_HAS_CMP,
        }, {
                /* W25H02NWxxAM */
                .id = SNOR_ID(0xef, 0xa0, 0x22),