dmaengine: sun6i: Fix impossible settings of burst and bus width
authorJean-Francois Moine <moinejf@free.fr>
Fri, 22 Apr 2016 06:17:14 +0000 (08:17 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 26 Apr 2016 03:39:28 +0000 (09:09 +0530)
commitdc6a58c17cd443bfdd2e05c45aec80106d59fdb2
tree9568e6af0d60a144b1b031d076589e0105173479
parent128fe7e9a0b99da1d7346528526bd424f705774b
dmaengine: sun6i: Fix impossible settings of burst and bus width

In the commit 1f9cd915b64bb95f ("dmaengine: sun6i: Fix memcpy operation"),
the signed values returned by convert_burst() and convert_buswidth()
were stored in an unsigned value.
Then, these values were considered as errors when non null.

As a result, DMA transfers were rejected when the burst or buswidth
had values different from 1, as 8 for the burst or 4 for the bus width.

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sun6i-dma.c