]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
mtd: spi-nor: add TB (Top/Bottom) protect support
authorBrian Norris <computersforpeace@gmail.com>
Fri, 29 Jan 2016 19:25:36 +0000 (11:25 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 8 Mar 2016 02:01:57 +0000 (18:01 -0800)
commit3dd8012a8eeb3702fa17450ec1a16a3f38af138d
tree699d4370d9e17fd294f695f7942debd3684c7a5c
parent76a4707de5e18dc32d9cb4e990686140c5664a15
mtd: spi-nor: add TB (Top/Bottom) protect support

Some flash support a bit in the status register that inverts protection
so that it applies to the bottom of the flash, not the top. This yields
additions to the protection range table, as noted in the comments.

Because this feature is not universal to all flash that support
lock/unlock, control it via a new flag.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Tested-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h