mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 17:10:11 +00:00
spi: zynqmp_qspi: Workaround for small data cache issue
Cache related issues are seen with small sized data reads. Due to this, proper data is not read. Also some times sf probe fails randomly. To workaround this issue, invalidate dcache after read DMA is triggered. Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> Link: https://lore.kernel.org/r/20230915031759.28889-3-venkatesh.abbarapu@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
parent
638189ddea
commit
a3ade3dae4
1 changed files with 2 additions and 0 deletions
|
@ -707,6 +707,8 @@ static int zynqmp_qspi_start_dma(struct zynqmp_qspi_priv *priv,
|
||||||
return -ETIMEDOUT;
|
return -ETIMEDOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
invalidate_dcache_range(addr, addr + size);
|
||||||
|
|
||||||
writel(GQSPI_DMA_DST_I_STS_DONE, &dma_regs->dmaisr);
|
writel(GQSPI_DMA_DST_I_STS_DONE, &dma_regs->dmaisr);
|
||||||
|
|
||||||
debug("buf:0x%lx, rxbuf:0x%lx, *buf:0x%x len: 0x%x\n",
|
debug("buf:0x%lx, rxbuf:0x%lx, *buf:0x%x len: 0x%x\n",
|
||||||
|
|
Loading…
Reference in a new issue