linux_dsm_epyc7002/include/linux/mtd
Alexander Sverdlin c4b3eacc1d mtd: spi-nor: Recover from Spansion/Cypress errors
S25FL{128|256|512}S datasheets say:
"When P_ERR or E_ERR bits are set to one, the WIP bit will remain set to
one indicating the device remains busy and unable to receive new operation
commands. A Clear Status Register (CLSR) command must be received to return
the device to standby mode."

Current spi-nor code works until first error occurs, but write/erase errors
are not just rare hardware failures, they also occur if user tries to flash
write-protected areas. After such attempt no SPI command can be executed
any more and even read fails. This patch adds support for P_ERR and E_ERR
bits in Status Register 1 (so that operation fails immediately and not
after a long timeout) and proper recovery from the error condition.

Tested on Spansion S25FS128S, which is supported by S25FL129P entry.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
2017-08-01 21:15:33 +02:00
..
bbm.h mtd: onenand: make onenand_scan_bbt() static 2016-01-23 14:00:16 -08:00
blktrans.h
cfi_endian.h
cfi.h
concat.h
doc2000.h
flashchip.h
ftl.h
gen_probe.h
inftl.h mtd: inftl: kill unused oobinfo field 2016-01-26 10:27:33 -08:00
latch-addr-flash.h
lpc32xx_mlc.h
lpc32xx_slc.h
map.h mtd: avoid stack overflow in MTD CFI code 2016-04-03 16:46:24 -07:00
mtd.h MTD updates for 4.12-rc1: 2017-05-11 10:44:22 -07:00
mtdram.h
nand_bch.h mtd: nand: simplify nand_bch_init() usage 2016-03-07 16:23:09 -08:00
nand_ecc.h
nand-gpio.h
nand.h MTD updates for v4.13-rc1: 2017-07-13 12:07:44 -07:00
ndfc.h
nftl.h mtd: nftl: kill unused oobinfo field 2016-01-26 10:27:34 -08:00
onenand_regs.h
onenand.h mtd: onenand: switch to mtd_ooblayout_ops 2016-05-05 23:51:49 +02:00
partitions.h mtd: partitions: add support for partition parsers 2017-06-22 13:13:09 -07:00
pfow.h
physmap.h
pismo.h
plat-ram.h
qinfo.h scripts/spelling.txt: add "partiton" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
sh_flctl.h mtd: sh_flctl: pass FIFO as physical address 2015-12-18 18:27:13 -08:00
sharpsl.h mtd: nand: sharpsl: switch to mtd_ooblayout_ops 2016-05-05 23:51:36 +02:00
spear_smi.h
spi-nor.h mtd: spi-nor: Recover from Spansion/Cypress errors 2017-08-01 21:15:33 +02:00
super.h
ubi.h
xip.h