]> 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)
commitd4b425de2206e3f29d7a49034cd71c3b6d55fb0c
treedc38ba15d5f4c7b950db0f62dfac3a9ca21f41a5
parent429613de615300dd0be74649dc24279e061d105a
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