mtd: rawnand: qcom: parse read errors for read oob also
authorAbhishek Sahu <absahu@codeaurora.org>
Wed, 20 Jun 2018 07:27:36 +0000 (12:57 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jul 2018 07:24:08 +0000 (09:24 +0200)
commitadd0cfa3c3e51149c2101765edf05c548ba5f2ee
treecba72336cdbf3071fe72d6066e50fc4651fe0243
parent2f610386736d9e5dc69fa06374138f9712690921
mtd: rawnand: qcom: parse read errors for read oob also

read_page and read_oob both calls the read_page_ecc function.
The QCOM NAND controller protect the OOB available bytes with
ECC so read errors should be checked for read_oob also.
This patch moves the error checking code inside read_page_ecc
so caller does not have to check explicitly for read errors.

Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/qcom_nandc.c