lkml.org 
[lkml]   [2019]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/5] mtd: spi-nor: write protection at power-up
Date
From: Tudor Ambarus <tudor.ambarus@microchip.com>

There is no functional change intended for the first 2 patches.

Patch 3 adds support for the Global Block Unlock command: a single
command cycle that unlocks the entire memory array.

Patch 4 unlocks the global block protection on sst26vf064b. This is
identical with what other nor flashes are doing by clearing the
block protection bits from the status register: disable the write
protection after a power-on reset cycle.

Patch 5 adds a Kconfig option to disable the write protection at
power-up. This permits users to choose if they want the write
protection at power-up enabled or not. Backward compatibility imposes
to disable the write protection at power-up, so the Kconfig option is
selected by default.

Tudor Ambarus (5):
mtd: spi-nor: fix description for int (*flash_is_locked)()
mtd: spi-nor: group the code about the write protection at power-up
mtd: spi-nor: add Global Block Unlock support
mtd: spi-nor: unlock global block protection on sst26vf064b
mtd: spi-nor: add Kconfig option to disable write protection at
power-up

drivers/mtd/spi-nor/Kconfig | 8 ++++++
drivers/mtd/spi-nor/spi-nor.c | 66 ++++++++++++++++++++++++++++++++-----------
include/linux/mtd/spi-nor.h | 9 +++---
3 files changed, 62 insertions(+), 21 deletions(-)

--
2.9.5

\
 
 \ /
  Last update: 2019-07-17 10:49    [W:1.172 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site