]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: dw: fix cyclic transfer setup
authorMans Rullgard <mans@mansr.com>
Mon, 11 Jan 2016 13:04:28 +0000 (13:04 +0000)
committerVinod Koul <vinod.koul@intel.com>
Thu, 14 Jan 2016 05:49:01 +0000 (11:19 +0530)
commitdf3bb8a0e619d501cd13334c3e0586edcdcbc716
tree994ac40e7ff08380fee3d7d80a8e630d4db10a2a
parentd20313b2c407a90fb60eca99d73c47a75bb42e08
dmaengine: dw: fix cyclic transfer setup

Commit 61e183f83069 ("dmaengine/dw_dmac: Reconfigure interrupt and
chan_cfg register on resume") moved some channel initialisation to
a new function which must be called before starting a transfer.

This updates dw_dma_cyclic_start() to use dwc_dostart() like the other
modes, thus ensuring dwc_initialize() gets called and removing some code
duplication.

Fixes: 61e183f83069 ("dmaengine/dw_dmac: Reconfigure interrupt and chan_cfg register on resume")
Signed-off-by: Mans Rullgard <mans@mansr.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Cc: <stable@vger.kernel.org>
drivers/dma/dw/core.c