[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bbb8f8c0-3676-4846-b4d3-70e1c533b66d@linaro.org>
Date: Tue, 29 Oct 2024 06:35:10 +0000
From: Tudor Ambarus <tudor.ambarus@...aro.org>
To: Marcus Folkesson <marcus.folkesson@...il.com>,
Pratyush Yadav <pratyush@...nel.org>, Michael Walle <mwalle@...nel.org>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>, Vignesh Raghavendra <vigneshr@...com>,
Nicolas Ferre <nicolas.ferre@...rochip.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Claudiu Beznea <claudiu.beznea@...on.dev>
Cc: linux-mtd@...ts.infradead.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mtd: spi-nor: atmel: provide .size to the at25ff321a
entry
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@...il.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().
Powered by blists - more mailing lists