From f6eb36498f19fb0e4b6ceba1670ab90d7c28ffb9 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 f9d82d1d977c8..0efc0870beab1 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; }