[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <44be8e3c-86ca-501e-e575-55f17747bda6@microchip.com>
Date: Thu, 3 Dec 2020 14:34:17 +0000
From: <Tudor.Ambarus@...rochip.com>
To: <michael@...le.cc>, <linux-mtd@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
CC: <miquel.raynal@...tlin.com>, <richard@....at>, <vigneshr@...com>,
<boris.brezillon@...labora.com>, <stable@...r.kernel.org>
Subject: Re: [PATCH v7 1/7] mtd: spi-nor: sst: fix BPn bits for the
SST25VF064C
On 12/3/20 1:00 AM, Michael Walle wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> This flash part actually has 4 block protection bits.
>
> Reported-by: Tudor Ambarus <tudor.ambarus@...rochip.com>
> Cc: stable@...r.kernel.org # v5.7+
While the patch is correct according to the datasheet, it was
not tested, so it's not a candidate for stable. I would update
the commit message to indicate that the the patch was made
solely on datasheet info and not tested, I would add the fixes
tag, and strip cc-ing to stable.
> Signed-off-by: Michael Walle <michael@...le.cc>
With the above addressed:
Reviewed-by: Tudor Ambarus <tudor.ambarus@...rochip.com>
> ---
> I didn't add the Fixes: tag because we depend on the 4bit BP support which
> was introduced in 5.7.
>
> changes since v6:
> - new patch
>
> drivers/mtd/spi-nor/sst.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/spi-nor/sst.c b/drivers/mtd/spi-nor/sst.c
> index e0af6d25d573..0ab07624fb73 100644
> --- a/drivers/mtd/spi-nor/sst.c
> +++ b/drivers/mtd/spi-nor/sst.c
> @@ -18,7 +18,8 @@ static const struct flash_info sst_parts[] = {
> SECT_4K | SST_WRITE) },
> { "sst25vf032b", INFO(0xbf254a, 0, 64 * 1024, 64,
> SECT_4K | SST_WRITE) },
> - { "sst25vf064c", INFO(0xbf254b, 0, 64 * 1024, 128, SECT_4K) },
> + { "sst25vf064c", INFO(0xbf254b, 0, 64 * 1024, 128,
> + SECT_4K | SPI_NOR_4BIT_BP) },
> { "sst25wf512", INFO(0xbf2501, 0, 64 * 1024, 1,
> SECT_4K | SST_WRITE) },
> { "sst25wf010", INFO(0xbf2502, 0, 64 * 1024, 2,
> --
> 2.20.1
>
Powered by blists - more mailing lists