From: Ruiqiang Hao <ruiqiang....@windriver.com>

After commit ec1c0e996035("mtd: spi-nor: Rework the flash_info flags"),
SPI_NOR_4B_OPCODES flag was moved into FIXUP_FLAGS, move this flag for
w25q256jw flash to enable 4B opcodes.

Signed-off-by: Ruiqiang Hao <ruiqiang....@windriver.com>
---
 drivers/mtd/spi-nor/winbond.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c
index e054a8749619..c18e2745df45 100644
--- a/drivers/mtd/spi-nor/winbond.c
+++ b/drivers/mtd/spi-nor/winbond.c
@@ -130,7 +130,8 @@ static const struct flash_info winbond_nor_parts[] = {
                PARSE_SFDP },
        { "w25q256jw", INFO(0xef6019, 0, 64 * 1024, 512)
                NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
-                             SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+                             SPI_NOR_QUAD_READ)
+               FIXUP_FLAGS(SPI_NOR_4B_OPCODES) },
        { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024)
                NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ |
                              SPI_NOR_DUAL_READ) },
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13578): 
https://lists.yoctoproject.org/g/linux-yocto/message/13578
Mute This Topic: https://lists.yoctoproject.org/mt/104411523/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to