[PATCH] IMX/DMA : set the DMA direction in the sdma_control()

Vinod Koul vinod.koul at intel.com
Mon Nov 21 23:23:56 EST 2011


On Fri, 2011-11-18 at 16:38 +0800, Huang Shijie wrote:
> 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 at freescale.com>
> ---
>  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 f993955..37b8f84 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,
>  			sdmac->watermark_level = dmaengine_cfg->dst_maxburst;
>  			sdmac->word_size = dmaengine_cfg->dst_addr_width;
>  		}
> +		sdmac->direction = dmaengine_cfg->direction;
>  		return sdma_config_channel(sdmac);
>  	default:
>  		return -ENOSYS;
Applied thanks

-- 
~Vinod




More information about the linux-arm-kernel mailing list