All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: spi-nor: Add lock/unlock support for f25l32pa
@ 2017-01-03  1:34 Victor Shyba
  2017-01-03  2:10 ` Marek Vasut
  0 siblings, 1 reply; 3+ messages in thread
From: Victor Shyba @ 2017-01-03  1:34 UTC (permalink / raw)
  To: linux-mtd

This chip has write protection enabled on power-up,
so this flag is necessary to support write operations.

Signed-off-by: Victor Shyba <victor1984@riseup.net>
---
 drivers/mtd/spi-nor/spi-nor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index da7cd69..f325925 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -821,7 +821,7 @@ static const struct flash_info spi_nor_ids[] = {
 	{ "en25s64",	INFO(0x1c3817, 0, 64 * 1024,  128, SECT_4K) },
 
 	/* ESMT */
-	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
+	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_HAS_LOCK) },
 
 	/* Everspin */
 	{ "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
-- 
2.7.4

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

* Re: [PATCH] mtd: spi-nor: Add lock/unlock support for f25l32pa
  2017-01-03  1:34 [PATCH] mtd: spi-nor: Add lock/unlock support for f25l32pa Victor Shyba
@ 2017-01-03  2:10 ` Marek Vasut
  2017-01-04 17:30   ` Cyrille Pitchen
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2017-01-03  2:10 UTC (permalink / raw)
  To: Victor Shyba, linux-mtd

On 01/03/2017 02:34 AM, Victor Shyba wrote:
> This chip has write protection enabled on power-up,
> so this flag is necessary to support write operations.
> 
> Signed-off-by: Victor Shyba <victor1984@riseup.net>

Acked-by: Marek Vasut <marek.vasut@gmail.com>

I guess it can also be added for stable.

> ---
>  drivers/mtd/spi-nor/spi-nor.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index da7cd69..f325925 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -821,7 +821,7 @@ static const struct flash_info spi_nor_ids[] = {
>  	{ "en25s64",	INFO(0x1c3817, 0, 64 * 1024,  128, SECT_4K) },
>  
>  	/* ESMT */
> -	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
> +	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_HAS_LOCK) },
>  
>  	/* Everspin */
>  	{ "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
> 


-- 
Best regards,
Marek Vasut

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

* Re: [PATCH] mtd: spi-nor: Add lock/unlock support for f25l32pa
  2017-01-03  2:10 ` Marek Vasut
@ 2017-01-04 17:30   ` Cyrille Pitchen
  0 siblings, 0 replies; 3+ messages in thread
From: Cyrille Pitchen @ 2017-01-04 17:30 UTC (permalink / raw)
  To: Marek Vasut, Victor Shyba, linux-mtd

Le 03/01/2017 à 03:10, Marek Vasut a écrit :
> On 01/03/2017 02:34 AM, Victor Shyba wrote:
>> This chip has write protection enabled on power-up,
>> so this flag is necessary to support write operations.
>>
>> Signed-off-by: Victor Shyba <victor1984@riseup.net>
> 
> Acked-by: Marek Vasut <marek.vasut@gmail.com>
> 

Applied to git://github.com/spi-nor/linux.git

Thanks!

> I guess it can also be added for stable.
> 
>> ---
>>  drivers/mtd/spi-nor/spi-nor.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
>> index da7cd69..f325925 100644
>> --- a/drivers/mtd/spi-nor/spi-nor.c
>> +++ b/drivers/mtd/spi-nor/spi-nor.c
>> @@ -821,7 +821,7 @@ static const struct flash_info spi_nor_ids[] = {
>>  	{ "en25s64",	INFO(0x1c3817, 0, 64 * 1024,  128, SECT_4K) },
>>  
>>  	/* ESMT */
>> -	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
>> +	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_HAS_LOCK) },
>>  
>>  	/* Everspin */
>>  	{ "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
>>
> 
> 

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

end of thread, other threads:[~2017-01-04 17:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-03  1:34 [PATCH] mtd: spi-nor: Add lock/unlock support for f25l32pa Victor Shyba
2017-01-03  2:10 ` Marek Vasut
2017-01-04 17:30   ` Cyrille Pitchen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.