]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/dma/mxs-dma.c
dma: mxs-dma: Fix channel reset hardware bug
authorMarkus Pargmann <mpa@pengutronix.de>
Tue, 29 Oct 2013 07:47:47 +0000 (08:47 +0100)
committerVinod Koul <vinod.koul@intel.com>
Wed, 13 Nov 2013 10:08:30 +0000 (15:38 +0530)
commit702e94d66b555622ca6830de3095b5f0bb2ff6d7
tree9a1319edf4ad1a6601aee57692a925e8d952bc02
parent7b11304a3c11a24a8674a47e8fd136182f86b49d
dma: mxs-dma: Fix channel reset hardware bug

This is no official errata, but I noticed that the channel reset may
stop working if the DMA state engine is in the READ_FLUSH state.

This patch uses the channel debug1 register to wait for the DMA
statemachine to leave the READ_FLUSH state. After that we can continue
to reset the channel.

Tested on i.MX28.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mxs-dma.c