dmaengine: dw: fix cyclic transfer setup
authorMans Rullgard <mans@mansr.com>
Mon, 11 Jan 2016 13:04:28 +0000 (13:04 +0000)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Feb 2016 03:56:48 +0000 (22:56 -0500)
commit6e58c401897d31de9e5ea0da2c6a90aa83cc6eae
treed9b017d20fbbc1fb8f07840628342ba1f69f39fd
parent013ee0930eb50ef80f94bdf42c381c54f2f85171
dmaengine: dw: fix cyclic transfer setup

[ Upstream commit df3bb8a0e619d501cd13334c3e0586edcdcbc716 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/dma/dw/core.c