]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
dmaengine: ep93xx: Always start from BASE0
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>
Mon, 22 May 2017 14:05:22 +0000 (16:05 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 27 Jun 2017 13:16:25 +0000 (10:16 -0300)
commita6fe7ca0bd586d7f446159b06a22c6355f4caa1b
treefe994e0a0485bed5ee835e4e584e780be4744260
parente2049cd23ce16403873eab26f2c0ac5c06490fb2
dmaengine: ep93xx: Always start from BASE0

BugLink: http://bugs.launchpad.net/bugs/1698799
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/dma/ep93xx_dma.c