mtd: rawnand: qcom: Clear buf_count and buf_start in raw read
authorMd Sadre Alam <quic_mdalam@quicinc.com>
Fri, 18 Aug 2023 14:51:00 +0000 (20:21 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 18 Aug 2023 20:01:50 +0000 (22:01 +0200)
commit318207ffe487bde07e0ef229a9a51c896d66341e
tree94a652002e7f2d5b0abf36b14e77ca8680125b0b
parentb9e002a34420e5ba25d4283be870c48e0c9e005f
mtd: rawnand: qcom: Clear buf_count and buf_start in raw read

Initialize buf_count and buf_start to 0 before starting the
raw read. If we will not initialize then read staus will get
updated with wrong value and we will see failure for even
successful raw read transaction.

Signed-off-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230818145101.23825-3-quic_mdalam@quicinc.com
drivers/mtd/nand/raw/qcom_nandc.c