]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: qcom: Update code word value for raw read
authorMd Sadre Alam <mdalam@codeaurora.org>
Tue, 7 Sep 2021 07:05:57 +0000 (12:35 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 14 Sep 2021 17:36:00 +0000 (19:36 +0200)
commit54ab90877a37adb003a2dd394695ac590c899cb7
tree4f459c37980963a2bbb3824295ffcf833b45d953
parentb901123b83fca756ffcd85ea50a6cd9637d66d0c
mtd: rawnand: qcom: Update code word value for raw read

From QPIC V2 onwards there is a separate register to read
last code word "QPIC_NAND_READ_LOCATION_LAST_CW_n".

qcom_nandc_read_cw_raw() is used to read only one code word
at a time. If we will configure number of code words to 1 in
in QPIC_NAND_DEV0_CFG0 register then QPIC controller thinks
its reading the last code word, since from QPIC V2 onwards
we are having separate register to read the last code word,
we have to configure "QPIC_NAND_READ_LOCATION_LAST_CW_n"
register to fetch data from controller buffer to system
memory.

Fixes: b59db5f4ec4a ("mtd: rawnand: qcom: update last code word register")
Cc: stable@kernel.org
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1630998357-1359-1-git-send-email-mdalam@codeaurora.org
drivers/mtd/nand/raw/qcom_nandc.c