aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMiquel Raynal <[email protected]>2020-04-28 11:42:56 +0200
committerMiquel Raynal <[email protected]>2020-05-11 09:51:40 +0200
commit1d5d08ee9b28cff907326b4ad5a2463fd2808be1 (patch)
tree2cd8d55f53db03a1eaca7cedf71582d66455798d /tools/perf/scripts/python
parent4d8ec041d9c454029f6cd90622f6d81eb61e781c (diff)
mtd: rawnand: onfi: Fix redundancy detection check
During ONFI detection, the CRC derived from the parameter page and the CRC supposed to be at the end of the parameter page are compared. If they do not match, the second then the third copies of the page are tried. The current implementation compares the newly derived CRC with the CRC contained in the first page only. So if this particular CRC area has been corrupted, then the detection will fail for a wrong reason. Fix this issue by checking the derived CRC against the right one. Fixes: 39138c1f4a31 ("mtd: rawnand: use bit-wise majority to recover the ONFI param page") Cc: [email protected] Signed-off-by: Miquel Raynal <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions