diff options
author | Huang Shijie <b32955@freescale.com> | 2011-11-18 03:38:02 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2011-11-21 23:21:45 -0500 |
commit | e69664336d6400cc1685716ee5f04ef74e85703e (patch) | |
tree | afd600c789944c78546e773ae5a23ec3b0cf3f49 /drivers/dma/imx-sdma.c | |
parent | 7fb3e75e1833743d5faf3adbae46b63f503c6fdf (diff) |
IMX/DMA : set the DMA direction in the sdma_control()
Set the right DMA direction in the sdma_control(), else
we will get the wrong log when enable the DYNAMIC_DEBUG.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma/imx-sdma.c')
-rw-r--r-- | drivers/dma/imx-sdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 2e0357178d19..d9e5933d91eb 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -1102,6 +1102,7 @@ static int sdma_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd, | |||
1102 | sdmac->watermark_level = dmaengine_cfg->dst_maxburst; | 1102 | sdmac->watermark_level = dmaengine_cfg->dst_maxburst; |
1103 | sdmac->word_size = dmaengine_cfg->dst_addr_width; | 1103 | sdmac->word_size = dmaengine_cfg->dst_addr_width; |
1104 | } | 1104 | } |
1105 | sdmac->direction = dmaengine_cfg->direction; | ||
1105 | return sdma_config_channel(sdmac); | 1106 | return sdma_config_channel(sdmac); |
1106 | default: | 1107 | default: |
1107 | return -ENOSYS; | 1108 | return -ENOSYS; |