From: Viresh Kumar Date: Thu, 3 Mar 2011 10:17:18 +0000 (+0530) Subject: dw_dmac: Adding support for 64 bit access width for memcpy xfers X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a02274564dd78f7edde3c9ff197ed44f2f8a5a81;p=mv-sheeva.git dw_dmac: Adding support for 64 bit access width for memcpy xfers Signed-off-by: Viresh Kumar Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 2b0d5e99ae7..e5d97bf9264 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c @@ -583,7 +583,9 @@ dwc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, * We can be a lot more clever here, but this should take care * of the most common optimization. */ - if (!((src | dest | len) & 3)) + if (!((src | dest | len) & 7)) + src_width = dst_width = 3; + else if (!((src | dest | len) & 3)) src_width = dst_width = 2; else if (!((src | dest | len) & 1)) src_width = dst_width = 1;