diff options
author | Alexander Sverdlin <alexander.sverdlin@gmail.com> | 2017-05-22 16:05:22 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-05-24 09:52:46 +0530 |
commit | 0037ae47812b1f431cc602100d1d51f37d77b61e (patch) | |
tree | 5a6d750d378933e13476acaf7555c4bb7ce3edf1 /drivers/dma | |
parent | 9a445bbb1607d9f14556a532453dd86d1b7e381e (diff) |
dmaengine: ep93xx: Always start from BASE0
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>
Cc: stable@vger.kernel.org
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/ep93xx_dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c index d37e8dda8079..deb009c3121f 100644 --- a/drivers/dma/ep93xx_dma.c +++ b/drivers/dma/ep93xx_dma.c @@ -323,6 +323,8 @@ static int m2p_hw_setup(struct ep93xx_dma_chan *edmac) | M2P_CONTROL_ENABLE; m2p_set_control(edmac, control); + edmac->buffer = 0; + return 0; } |