Skip to content

Commit

Permalink
MLK-15305-2: dma: imx-sdma: force to load context in sdma_config
Browse files Browse the repository at this point in the history
Force to load context in sdma_config whatever context loaded or not,
since some configuration may change when the upper driver call sdma_config
such as bus width.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit ee8930b657af0c9ce2cfb1a521530c7d31016675)
  • Loading branch information
Robin Gong authored and nitingarg98 committed Mar 19, 2018
1 parent a40a9a5 commit d802d8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/dma/imx-sdma.c
Expand Up @@ -1168,6 +1168,8 @@ static int sdma_config_channel(struct dma_chan *chan)
sdmac->watermark_level = 0; /* FIXME: M3_BASE_ADDRESS */
}

sdmac->context_loaded = false;

ret = sdma_load_context(sdmac);

return ret;
Expand Down

0 comments on commit d802d8c

Please sign in to comment.