Re: [PATCH v2 7/8] dmaengine: dw: add support of iDMA 32-bit hardware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 02, 2017 at 12:00:48PM +0200, Andy Shevchenko wrote:

> @@ -915,6 +954,7 @@ static int dwc_config(struct dma_chan *chan, struct dma_slave_config *sconfig)
>  {
>  	struct dw_dma_chan *dwc = to_dw_dma_chan(chan);
>  	struct dma_slave_config *sc = &dwc->dma_sconfig;
> +	struct dw_dma *dw = to_dw_dma(chan->device);
>  	/*
>  	 * Fix sconfig's burst size according to dw_dmac. We need to convert
>  	 * them as:
> @@ -922,7 +962,7 @@ static int dwc_config(struct dma_chan *chan, struct dma_slave_config *sconfig)
>  	 *
>  	 * NOTE: burst size 2 is not supported by DesignWare controller.
>  	 */
> -	u32 s = 2;
> +	u32 s = dw->pdata->is_idma32 ? 1 : 2;

why this unexplained change?

-- 
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux