mtd: nand: qcom: erased codeword detection configuration
authorAbhishek Sahu <absahu@codeaurora.org>
Thu, 17 Aug 2017 12:07:44 +0000 (17:37 +0530)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 23 Aug 2017 14:49:28 +0000 (16:49 +0200)
commita86b9c4f57108a1368b7363bda12de704a7a64ec
tree185f52ccf4e1466f64b361435fb4797b5c9f94ae
parent91af95c143088d4c17d1fad238c4b0e999f4a5e8
mtd: nand: qcom: erased codeword detection configuration

The NAND controller returns ECC failure during read of completely
erased codeword. The NAND controller has hardware functionality
to detect erased codeword in case of BCH ECC algorithm. The
NAND_ERASED_CW_DETECT_CFG register controls the erased
codeword/page detection controller. This register should be reset
before every page read by setting and clearing bit 0 of
NAND_ERASED_CW_DETECT_CFG.

Reviewed-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/qcom_nandc.c