drivers: imx: Writeback cache for desc/ccb/ctx

We need to make sure that backend memory is updated for
desc/ccb/ctx because they are modified in sdma_prep_desc.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
Daniel Baluta 2020-04-24 14:48:19 +03:00 committed by Daniel Baluta
parent 834b3d5c28
commit 60a5a96bbb
1 changed files with 4 additions and 0 deletions

View File

@ -822,6 +822,10 @@ static int sdma_prep_desc(struct dma_chan_data *channel,
pdata->ctx->g_reg[7] = watermark;
}
dcache_writeback_region(pdata->desc, sizeof(pdata->desc));
dcache_writeback_region(pdata->ccb, sizeof(*pdata->ccb));
dcache_writeback_region(pdata->ctx, sizeof(*pdata->ctx));
return 0;
}