[PATCH] mtd: spi-nor: gigadevice: add missing flash_info.size field for gd25q256.
Renjun Wang
renjunw0 at foxmail.com
Wed Dec 18 06:27:59 PST 2024
The flash_info.size field be used in spi_nor_init_default_params()
which assigned to spi_nor_flash_parameter.size as default value.
Signed-off-by: Renjun Wang <renjunw0 at foxmail.com>
---
drivers/mtd/spi-nor/gigadevice.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi-nor/gigadevice.c b/drivers/mtd/spi-nor/gigadevice.c
index ef1edd0add70..e234fd2b7e63 100644
--- a/drivers/mtd/spi-nor/gigadevice.c
+++ b/drivers/mtd/spi-nor/gigadevice.c
@@ -61,6 +61,7 @@ static const struct flash_info gigadevice_nor_parts[] = {
}, {
.id = SNOR_ID(0xc8, 0x40, 0x19),
.name = "gd25q256",
+ .size = SZ_32M,
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6,
.fixups = &gd25q256_fixups,
.fixup_flags = SPI_NOR_4B_OPCODES,
--
2.39.5
More information about the linux-mtd
mailing list