dw_dmac: fix a regression in dwc_prep_dma_memcpy
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 1 Oct 2012 10:06:25 +0000 (13:06 +0300)
committerVinod Koul <vinod.koul@linux.intel.com>
Tue, 2 Oct 2012 07:48:00 +0000 (13:18 +0530)
commit3d4f860583bf4aa55dd5c6d5ba6ccf1f25fb473a
treefc5cb522ecd43872c01b35318deb5003853ff1f0
parentfed2574b3c9f44556ed4f5cb17f63b15edd87d06
dw_dmac: fix a regression in dwc_prep_dma_memcpy

Sometimes memory-to-memory test is failed, that's why we need to choose minimum
data portion between source and destination limits together.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/dw_dmac.c