mtd: rawnand: qcom: Add read/read_start ops in exec_op path
authorSricharan Ramabadhran <quic_srichara@quicinc.com>
Fri, 18 Aug 2023 14:51:01 +0000 (20:21 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 21 Aug 2023 07:35:30 +0000 (09:35 +0200)
commita82990c8a409365bbc995dcb41218225cb4b809a
treeb9782a420c8334560302fa9213bead61d6f42a09
parent318207ffe487bde07e0ef229a9a51c896d66341e
mtd: rawnand: qcom: Add read/read_start ops in exec_op path

READ/READ_START opcodes are not set in exec_op path.
Fixing that here.

While there, Steps to program the controller is common for
erase/reset/read/program page. So use a common pattern and
pull them under one function.

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