This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 8a7f96e7f4 arch/arm64/imx9: Fix usdhc dma receive
8a7f96e7f4 is described below

commit 8a7f96e7f47c03ca066d4837b26c84111019a2f4
Author: Jouni Ukkonen <[email protected]>
AuthorDate: Wed Dec 11 12:52:44 2024 +0200

    arch/arm64/imx9: Fix usdhc dma receive
    
    Invalidate cache when dma transfer is ready
    
    Signed-off-by: Jouni Ukkonen <[email protected]>
---
 arch/arm64/src/imx9/imx9_usdhc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/src/imx9/imx9_usdhc.c b/arch/arm64/src/imx9/imx9_usdhc.c
index 39cc9833ce..732d56c1d8 100644
--- a/arch/arm64/src/imx9/imx9_usdhc.c
+++ b/arch/arm64/src/imx9/imx9_usdhc.c
@@ -1069,6 +1069,8 @@ static void imx9_recvdma(struct imx9_dev_s *priv)
     {
       /* In an aligned case, we have always received all blocks */
 
+      up_invalidate_dcache((uintptr_t)priv->buffer,
+                           (uintptr_t)priv->buffer + priv->remaining);
       priv->remaining = 0;
     }
 

Reply via email to