]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: qcom_hidma: prevent disable in error
authorSinan Kaya <okaya@codeaurora.org>
Thu, 6 Oct 2016 19:33:14 +0000 (15:33 -0400)
committerVinod Koul <vinod.koul@intel.com>
Tue, 18 Oct 2016 15:03:33 +0000 (20:33 +0530)
commit7dcec7577ddbc5677deb5204a8cb8837c32a68cf
treee1948bb90c449dac19b45670a7bd99083969bdf2
parent1001354ca34179f3db924eb66672442a173147dc
dmaengine: qcom_hidma: prevent disable in error

When an error is observed, we try to disable the channel and prevent
further accesses from the client.

Depending on the type of error, transitioning into disabled state might
not be possible. Adding a check to make sure that HW is in enabled/running
state before the disable transition happens.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/qcom/hidma_ll.c