dmaengine: sun6i: Fix memcpy operation
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 11 Nov 2014 18:35:52 +0000 (19:35 +0100)
committerVinod Koul <vinod.koul@intel.com>
Wed, 12 Nov 2014 09:24:09 +0000 (14:54 +0530)
commit1f9cd915b64bb95f7b41667b4bf8b22f0a0a557b
tree920d2b885d9a37738cfa6c1b124e5aef2eee1a76
parent0df1f2487d2f0d04703f142813d53615d62a1da4
dmaengine: sun6i: Fix memcpy operation

The prep_memcpy call was not setting any meaningful burst and width because it
was relying on the dma_slave_config was not set already.

Rework the needed conversion functions, and hardcode the width and burst to
use.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: stable@vger.kernel.org
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sun6i-dma.c