OSDN Git Service

dmaengine: imx-sdma: refine to load context only once
authorRobin Gong <yibin.gong@nxp.com>
Tue, 8 Jan 2019 12:00:16 +0000 (12:00 +0000)
committerVinod Koul <vkoul@kernel.org>
Tue, 8 Jan 2019 17:03:27 +0000 (22:33 +0530)
commitad0d92d7ba6aecbe2705907c38ff8d8be4da1e9c
treebeb1c87d6655091345e119e04a5dd6df900e5290
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
dmaengine: imx-sdma: refine to load context only once

The context loaded only one time before channel running,but
currently sdma_config_channel() and dma_prep_* duplicated with
sdma_load_context(), so refine it to load context only one time
before channel running and reload after the channel terminated.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c