[PATCH] mtd: spi-nor: mx25l3205d/mx25l6405d: append SECT_4K

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 27 23:28:39 PST 2017


On Fri, Nov 24, 2017 at 03:42:51PM +0100, Ulrich Ölmann wrote:
> This is a port of Linux kernel commit
> 
>     | commit 0501f2e5ff28a02295e42fc9e7164a20ef4c30d5
>     | Author: Andreas Fenkart <afenkart at gmail.com>
>     | Date:   Thu Nov 5 10:04:23 2015 +0100
>     |
>     |     mtd: spi-nor: mx25l3205d/mx25l6405d: append SECT_4K
>     |
>     |     according datasheet both chips can erase 4kByte sectors individually
>     |
>     |     Signed-off-by: Andreas Fenkart <andreas.fenkart at dev.digitalstrom.org>
>     |     Signed-off-by: Brian Norris <computersforpeace at gmail.com>
> 
> Signed-off-by: Ulrich Ölmann <u.oelmann at pengutronix.de>
> ---
>  drivers/mtd/spi-nor/spi-nor.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index fb13cd12694a..5cf650c0e230 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -524,9 +524,9 @@ static const struct spi_device_id spi_nor_ids[] = {
>  	{ "mx25l4005a",  INFO(0xc22013, 0, 64 * 1024,   8, SECT_4K) },
>  	{ "mx25l8005",   INFO(0xc22014, 0, 64 * 1024,  16, 0) },
>  	{ "mx25l1606e",  INFO(0xc22015, 0, 64 * 1024,  32, SECT_4K) },
> -	{ "mx25l3205d",  INFO(0xc22016, 0, 64 * 1024,  64, 0) },
> +	{ "mx25l3205d",  INFO(0xc22016, 0, 64 * 1024,  64, SECT_4K) },
>  	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
> -	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, 0) },
> +	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
>  	{ "mx25u2033e",  INFO(0xc22532, 0, 64 * 1024,   4, SECT_4K) },
>  	{ "mx25u4035",   INFO(0xc22533, 0, 64 * 1024,   8, SECT_4K) },
>  	{ "mx25u8035",   INFO(0xc22534, 0, 64 * 1024,  16, SECT_4K) },
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list