mtd: cfi: cmdset_0001: Do not allow read/write to suspend erase block.

commit 6510bbc88e upstream.

Currently it is possible to read and/or write to suspend EB's.
Writing /dev/mtdX or /dev/mtdblockX from several processes may
break the flash state machine.

Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Joakim Tjernlund 2018-03-01 14:39:39 +01:00 • committed by Ben Hutchings
commit 2c2f62b940
2 changed files with 12 additions and 5 deletions