dmaengine: dmatest: honor alignment restriction for buffers
authorDave Jiang <dave.jiang@intel.com>
Tue, 29 Nov 2016 20:22:20 +0000 (13:22 -0700)
committerVinod Koul <vinod.koul@intel.com>
Wed, 30 Nov 2016 03:20:18 +0000 (08:50 +0530)
commitd6481608638946d8eeb91d7a19ad9ccd9e58a5c4
treeafa34a71a3d8cc1949135ad41cfa9a554dd642b5
parent31d182574a0ed2f2a540e2df51b245f3cec955e9
dmaengine: dmatest: honor alignment restriction for buffers

Existing implementation does not honor the alignment restrictions imposed
by the DMA engines. Allocate buffers with built in slack for honoring
alignment restrictions. Creating new arrays to hold the aligned pointers
and use those pointers for operations.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmatest.c