Commit 152ac606 authored by Hongbin Ji's avatar Hongbin Ji Committed by Mark Brown

spi: cadence-quadspi: Fix cancel the indirect read mask

This is to cancel the indirect read transfer process,
so should be use CQSPI_REG_INDIRECTRD_CANCEL_MASK
Signed-off-by: default avatarHongbin Ji <jhb_ee@163.com>
Link: https://lore.kernel.org/r/20230222092128.4237-1-jhb_ee@163.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7234d746
...@@ -786,7 +786,7 @@ static int cqspi_indirect_read_execute(struct cqspi_flash_pdata *f_pdata, ...@@ -786,7 +786,7 @@ static int cqspi_indirect_read_execute(struct cqspi_flash_pdata *f_pdata,
writel(0, reg_base + CQSPI_REG_IRQMASK); writel(0, reg_base + CQSPI_REG_IRQMASK);
/* Cancel the indirect read */ /* Cancel the indirect read */
writel(CQSPI_REG_INDIRECTWR_CANCEL_MASK, writel(CQSPI_REG_INDIRECTRD_CANCEL_MASK,
reg_base + CQSPI_REG_INDIRECTRD); reg_base + CQSPI_REG_INDIRECTRD);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment