mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mtd: spi-nor: atmel: provide .size to the at25ff321a entry
@ 2024-10-18  9:57 Marcus Folkesson
  2024-10-29  6:35 ` Tudor Ambarus
  0 siblings, 1 reply; 2+ messages in thread
From: Marcus Folkesson @ 2024-10-18  9:57 UTC (permalink / raw)
  To: Tudor Ambarus, Pratyush Yadav, Michael Walle, Miquel Raynal,
	Richard Weinberger, Vignesh Raghavendra, Nicolas Ferre,
	Alexandre Belloni, Claudiu Beznea
  Cc: linux-mtd, linux-arm-kernel, linux-kernel, Marcus Folkesson

Set size of the flash for the at25ff321a entry.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
 drivers/mtd/spi-nor/atmel.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/spi-nor/atmel.c b/drivers/mtd/spi-nor/atmel.c
index 45d1153a04a07b7c61f46b117311b24ab695038f..cc7217e96d0139a06d46f10e35c545f604464b3c 100644
--- a/drivers/mtd/spi-nor/atmel.c
+++ b/drivers/mtd/spi-nor/atmel.c
@@ -214,6 +214,7 @@ static const struct flash_info atmel_nor_parts[] = {
 	}, {
 		.id = SNOR_ID(0x1f, 0x47, 0x08),
 		.name = "at25ff321a",
+		.size = SZ_4M,
 		.flags = SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE,
 		.fixups = &atmel_nor_global_protection_fixups
 	}, {

---
base-commit: 200289db261f0c8131a5756133e9d30966289c3b
change-id: 20241018-at25ff321a-bccc1f60538b

Best regards,
-- 
Marcus Folkesson <marcus.folkesson@gmail.com>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] mtd: spi-nor: atmel: provide .size to the at25ff321a entry
  2024-10-18  9:57 [PATCH] mtd: spi-nor: atmel: provide .size to the at25ff321a entry Marcus Folkesson
@ 2024-10-29  6:35 ` Tudor Ambarus
  0 siblings, 0 replies; 2+ messages in thread
From: Tudor Ambarus @ 2024-10-29  6:35 UTC (permalink / raw)
  To: Marcus Folkesson, Pratyush Yadav, Michael Walle, Miquel Raynal,
	Richard Weinberger, Vignesh Raghavendra, Nicolas Ferre,
	Alexandre Belloni, Claudiu Beznea
  Cc: linux-mtd, linux-arm-kernel, linux-kernel



On 10/18/24 10:57 AM, Marcus Folkesson wrote:
> Set size of the flash for the at25ff321a entry.
> 
> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
> ---
>  drivers/mtd/spi-nor/atmel.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mtd/spi-nor/atmel.c b/drivers/mtd/spi-nor/atmel.c
> index 45d1153a04a07b7c61f46b117311b24ab695038f..cc7217e96d0139a06d46f10e35c545f604464b3c 100644
> --- a/drivers/mtd/spi-nor/atmel.c
> +++ b/drivers/mtd/spi-nor/atmel.c
> @@ -214,6 +214,7 @@ static const struct flash_info atmel_nor_parts[] = {
>  	}, {
>  		.id = SNOR_ID(0x1f, 0x47, 0x08),
>  		.name = "at25ff321a",
> +		.size = SZ_4M,

The flash size is retrieved from SFDP. BTW size of zero triggers SFDP
parsing, see spi_nor_needs_sfdp().

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-29  6:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-18  9:57 [PATCH] mtd: spi-nor: atmel: provide .size to the at25ff321a entry Marcus Folkesson
2024-10-29  6:35 ` 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®