From 8a7f96e7f47c03ca066d4837b26c84111019a2f4 Mon Sep 17 00:00:00 2001 From: Jouni Ukkonen Date: Wed, 11 Dec 2024 12:52:44 +0200 Subject: [PATCH] arch/arm64/imx9: Fix usdhc dma receive Invalidate cache when dma transfer is ready Signed-off-by: Jouni Ukkonen --- 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 39cc9833ce431..732d56c1d8db0 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; }