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 5607eec commit fe2c130
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 @@ -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;
}

Expand Down

0 comments on commit fe2c130

Please sign in to comment.