From: Aleksander Jan Bajkowski Date: Tue, 14 Sep 2021 21:20:58 +0000 (+0200) Subject: MIPS: lantiq: dma: add small delay after reset X-Git-Tag: v6.6.17~8953^2~454 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c12aa581f6d5e80c3c3675ab26a52c2b3b62f76e;p=platform%2Fkernel%2Flinux-rpi.git MIPS: lantiq: dma: add small delay after reset Reading the DMA registers immediately after the reset causes Data Bus Error. Adding a small delay fixes this issue. Signed-off-by: Aleksander Jan Bajkowski Signed-off-by: David S. Miller --- diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c index 63dccb2..2784715 100644 --- a/arch/mips/lantiq/xway/dma.c +++ b/arch/mips/lantiq/xway/dma.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -222,6 +223,8 @@ ltq_dma_init(struct platform_device *pdev) clk_enable(clk); ltq_dma_w32_mask(0, DMA_RESET, LTQ_DMA_CTRL); + usleep_range(1, 10); + /* disable all interrupts */ ltq_dma_w32(0, LTQ_DMA_IRNEN);