From: Alexander Sverdlin Date: Mon, 22 May 2017 14:05:22 +0000 (+0200) Subject: dmaengine: ep93xx: Always start from BASE0 X-Git-Tag: v4.4.72~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3340c0e110867d38b39454d8b4b52b1dd83b4195;p=profile%2Fcommon%2Fplatform%2Fkernel%2Flinux-artik7.git 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 Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c index 57ff462..c97336a 100644 --- a/drivers/dma/ep93xx_dma.c +++ b/drivers/dma/ep93xx_dma.c @@ -325,6 +325,8 @@ static int m2p_hw_setup(struct ep93xx_dma_chan *edmac) | M2P_CONTROL_ENABLE; m2p_set_control(edmac, control); + edmac->buffer = 0; + return 0; }