* [PATCH] mtd: spi-nor: gigadevice: add missing flash_info.size field for gd25q256.
@ 2024-12-18 14:27 Renjun Wang
2024-12-18 14:31 ` Tudor Ambarus
0 siblings, 1 reply; 2+ messages in thread
From: Renjun Wang @ 2024-12-18 14:27 UTC (permalink / raw)
To: tudor.ambarus, pratyush, mwalle, miquel.raynal, richard, vigneshr
Cc: linux-mtd, linux-kernel, Renjun Wang
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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: spi-nor: gigadevice: add missing flash_info.size field for gd25q256.
2024-12-18 14:27 [PATCH] mtd: spi-nor: gigadevice: add missing flash_info.size field for gd25q256 Renjun Wang
@ 2024-12-18 14:31 ` Tudor Ambarus
0 siblings, 0 replies; 2+ messages in thread
From: Tudor Ambarus @ 2024-12-18 14:31 UTC (permalink / raw)
To: Renjun Wang, pratyush, mwalle, miquel.raynal, richard, vigneshr
Cc: linux-mtd, linux-kernel
On 12/18/24 2:27 PM, Renjun Wang wrote:
> The flash_info.size field be used in spi_nor_init_default_params()
> which assigned to spi_nor_flash_parameter.size as default value.
see spi_nor_needs_sfdp().
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-18 14:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-18 14:27 [PATCH] mtd: spi-nor: gigadevice: add missing flash_info.size field for gd25q256 Renjun Wang
2024-12-18 14:31 ` Tudor Ambarus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®