diff options
| author | Tudor Ambarus <[email protected]> | 2020-03-23 17:50:40 +0000 |
|---|---|---|
| committer | Tudor Ambarus <[email protected]> | 2020-03-23 17:50:40 +0000 |
| commit | e0fe5339d4886c48cdd68a2c49d602c4c1864c38 (patch) | |
| tree | ae0b30e2daccee58ec4f6ff2892d8015a111de19 /drivers/mtd/lpddr/lpddr_cmds.c | |
| parent | MAINTAINERS: update entry after SPI NOR controller move (diff) | |
| download | kernel-e0fe5339d4886c48cdd68a2c49d602c4c1864c38.tar.gz kernel-e0fe5339d4886c48cdd68a2c49d602c4c1864c38.zip | |
mtd: spi-nor: Clear WEL bit when erase or program errors occur
When an Erase or Program error occurs on a spansion/cypress or a
micron flash, the WEL bit remains set to one and should be cleared
with a WRDI command in order to protect against inadvertent writes
that can possible corrupt the contents of the memory.
Winbond, macronix, gd, etc., do not support the E_ERR and P_ERR bits in the
Status Register and always clear the WEL bit regardless of the outcome
of the erase or page program operation (ex w25q40bw, MX25L25635E).
Issue a WRDI command when erase or page program errors occur.
Reported-by: John Garry <[email protected]>
Signed-off-by: Tudor Ambarus <[email protected]>
Tested-by: John Garry <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions
