diff options
author | 2018-05-11 14:44:07 +0200 | |
---|---|---|
committer | 2018-05-15 22:58:07 +0200 | |
commit | 782d1967d0479ffd59412b2f3179c8bb35f50ff6 (patch) | |
tree | 67568e7892a2b27b02f9e77fdf74b51df7215600 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: rawnand: use bit-wise majority to recover the ONFI param page (diff) | |
download | wireguard-linux-782d1967d0479ffd59412b2f3179c8bb35f50ff6.tar.xz wireguard-linux-782d1967d0479ffd59412b2f3179c8bb35f50ff6.zip |
mtd: rawnand: Do not check FAIL bit when executing a SET_FEATURES op
The ONFI spec clearly says that FAIL bit is only valid for PROGRAM,
ERASE and READ-with-on-die-ECC operations, and should be ignored
otherwise.
It seems that checking it after sending a SET_FEATURES is a bad idea
because a previous READ, PROGRAM or ERASE op may have failed, and
depending on the implementation, the FAIL bit is not cleared until a
new READ, PROGRAM or ERASE is started.
This leads to ->set_features() returning -EIO while it actually worked,
which can sometimes stop a batch of READ/PROGRAM ops.
Note that we only fix the ->exec_op() path here, because some drivers
are abusing the NAND_STATUS_FAIL flag in their ->waitfunc()
implementation to propagate other kind of errors, like
wait-ready-timeout or controller-related errors. Let's not try to fix
those drivers since they worked fine so far.
Fixes: 8878b126df76 ("mtd: nand: add ->exec_op() implementation")
Cc: stable@vger.kernel.org
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions