linux-sg2042/drivers/mtd/nand/brcmnand
Kamal Dasu 9d2ee0a60b mtd: nand: brcmnand: Check flash #WP pin status before nand erase/program
On brcmnand controller v6.x and v7.x, the #WP pin is controlled through
the NAND_WP bit in CS_SELECT register.

The driver currently assumes that toggling the #WP pin is
instantaneously enabling/disabling write-protection, but it actually
takes some time to propagate the new state to the internal NAND chip
logic. This behavior is sometime causing data corruptions when an
erase/program operation is executed before write-protection has really
been disabled.

Fixes: 27c5b17cd1 ("mtd: nand: add NAND driver "library" for Broadcom STB NAND controller")
Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
2017-04-25 14:18:42 +02:00
..
Makefile mtd: brcmnand: Add support for the BCM6368 2015-12-09 18:28:42 -08:00
bcm6368_nand.c mtd: brcmnand: defer to devm_ioremap_resource() for error checking 2015-12-10 13:08:08 -08:00
bcm63138_nand.c mtd: brcmnand: refactor bcm63138 SoC layering 2015-09-30 13:07:01 -07:00
brcmnand.c mtd: nand: brcmnand: Check flash #WP pin status before nand erase/program 2017-04-25 14:18:42 +02:00
brcmnand.h mtd: brcmnand: iProc big endian and ONFI support 2016-09-23 09:35:16 +02:00
brcmstb_nand.c
iproc_nand.c mtd: brcmnand: iProc big endian and ONFI support 2016-09-23 09:35:16 +02:00