dmaengine: ep93xx: Always start from BASE0
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>
Mon, 22 May 2017 14:05:22 +0000 (16:05 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:55:09 +0000 (02:55 +0000)
commit3a03c2a8708f599dcf4156ff7865fb9a1b147eaf
treef39b9ea3b2b0321cba6ced978f9d16eacd0a4eac
parent2315f4b7884b132499c5021e3b21472b8829ffac
dmaengine: ep93xx: Always start from BASE0

commit 0037ae47812b1f431cc602100d1d51f37d77b61e upstream.

The current buffer is being reset to zero on device_free_chan_resources()
but not on device_terminate_all(). It could happen that HW is restarted and
expects BASE0 to be used, but the driver is not synchronized and will start
from BASE1. One solution is to reset the buffer explicitly in
m2p_hw_setup().

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/ep93xx_dma.c