mtd: nand: qcom: fix read failure without complete bootchain
authorAbhishek Sahu <absahu@codeaurora.org>
Fri, 11 Aug 2017 11:39:16 +0000 (17:09 +0530)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 23 Aug 2017 14:49:24 +0000 (16:49 +0200)
commitd8a9b320a26c1ea28e51e4f3ecfb593d5aac2910
tree0a32edc7e8f79f253ad475fbfc8fc21b64ba6297
parent238709b22097a16839078530e0a10812dde86f16
mtd: nand: qcom: fix read failure without complete bootchain

The NAND page read fails without complete boot chain since
NAND_DEV_CMD_VLD value is not proper. The default power on reset
value for this register is

    0xe - ERASE_START_VALID | WRITE_START_VALID | READ_STOP_VALID

The READ_START_VALID should be enabled for sending PAGE_READ
command. READ_STOP_VALID should be cleared since normal NAND
page read does not require READ_STOP command.

Fixes: c76b78d8ec05a ("mtd: nand: Qualcomm NAND controller driver")
Cc: stable@vger.kernel.org
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