]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: altera: fix response FIFO emptying
authorSylvain Lesne <lesne@alse-fr.com>
Mon, 18 Sep 2017 11:08:00 +0000 (13:08 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 28 Sep 2017 07:41:46 +0000 (13:11 +0530)
commitd244c76612a6d325f59986040ee35239fab3d89f
tree3b0287ab57ed014e2eb4386dc653377578f8189a
parentd23ab3a59de61646f821e969b829837665ab7b6c
dmaengine: altera: fix response FIFO emptying

Commit 33e0d25274e8 ("dmaengine: altera: Use macros instead of structs
to describe the registers") introduced a minus sign before a register
offset.

This leads to soft-locks of the DMA controller, since reading the last
status byte is required to pop the response from the FIFO. Failing to
do so will lead to a full FIFO, which means that the DMA controller
will stop processing descriptors.

Signed-off-by: Sylvain Lesne <lesne@alse-fr.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/altera-msgdma.c