]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit544aa69b64a85dabee62f5f3c1993bd0a27433ce
treedc38ba15d5f4c7b950db0f62dfac3a9ca21f41a5
parent85e38fee7e85dd05753f597876f52e63a80ed330
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