Skip to content

Commit

Permalink
arch/arm64/imx9: Fix usdhc dma receive
Browse files Browse the repository at this point in the history
Invalidate cache when dma transfer is ready

Signed-off-by: Jouni Ukkonen <[email protected]>
  • Loading branch information
joukkone committed Dec 11, 2024
1 parent 6819583 commit 2fe0158
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm64/src/imx9/imx9_usdhc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,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;
}

Expand Down

0 comments on commit 2fe0158

Please sign in to comment.