]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: rawnand: use bit-wise majority to recover the ONFI param page
authorWan, Jane (Nokia - US/Sunnyvale) <jane.wan@nokia.com>
Sun, 13 May 2018 04:30:02 +0000 (04:30 +0000)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 13 May 2018 07:50:16 +0000 (09:50 +0200)
commit39138c1f4a31f3468fa2e44aba4495c0c30da205
tree66ff67df4e0bc9df7f2bb6cb87c354f08d5d880b
parenta676688032e819c4bb1999a422553a1a1f52ce45
mtd: rawnand: use bit-wise majority to recover the ONFI param page

Per ONFI specification (Rev. 4.0), if all parameter pages have invalid
CRC values, the bit-wise majority may be used to recover the contents
of the parameter page from the parameter page copies present.

Signed-off-by: Jane Wan <Jane.Wan@nokia.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/nand_base.c