mtd: rawnand: qcom: modify write_oob to remove read codeword part
authorAbhishek Sahu <absahu@codeaurora.org>
Wed, 20 Jun 2018 07:27:37 +0000 (12:57 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jul 2018 07:24:08 +0000 (09:24 +0200)
commit28eed9f6cab6ab28cdca4a43df4f8ed51dd5f8f8
treedc38ba15d5f4c7b950db0f62dfac3a9ca21f41a5
parentadd0cfa3c3e51149c2101765edf05c548ba5f2ee
mtd: rawnand: qcom: modify write_oob to remove read codeword part

QCOM NAND controller layout protects available OOB data bytes with
ECC also so when ecc->write_oob() is being called then it
can't update just OOB bytes. Currently, it first reads the last
codeword which includes old OOB bytes. Then it updates the old OOB
bytes with new ones and then again writes the codeword back.
The reading codeword is unnecessary since user is responsible to
have these bytes cleared to 0xFF.

This patch removes the read part and updates the OOB bytes with
data area padded with OxFF.

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