arch/arm64/imx9: Fix usdhc dma receive

Invalidate cache when dma transfer is ready

Signed-off-by: Jouni Ukkonen <jouni.ukkonen@unikie.com>
This commit is contained in:
Jouni Ukkonen 2024-12-11 12:52:44 +02:00 committed by Xiang Xiao
parent a75e2704dc
commit 8a7f96e7f4

View file

@ -1069,6 +1069,8 @@ static void imx9_recvdma(struct imx9_dev_s *priv)
{ {
/* In an aligned case, we have always received all blocks */ /* 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; priv->remaining = 0;
} }