summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorHongbo Zhang <hongbo.zhang@freescale.com>2014-04-10 06:18:22 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-04-11 16:26:54 (GMT)
commit2bff233af530a406f3ff0a0e09b6cade657f3354 (patch)
tree62146928efe47915e27dbd58b46e89821a4899d5 /drivers/dma
parent52f28f035d5ab0c912299b96220ae81112d94c11 (diff)
downloadlinux-fsl-qoriq-2bff233af530a406f3ff0a0e09b6cade657f3354.tar.xz
fsldma: bug fix for dma suspend
During the suspend process, DMA channels are suspended one by one, if one channel cannot be suspended, all the former channels which have been suspended should be restored, i.e. mark the pm_state as running, and release the spin locks aquired. This patch adds the "pm_state = RUNNING" which was omitted in the original suspend patch. Signed-off-by: Hongbo Zhang <hongbo.zhang@freescale.com> Change-Id: I924af3384d58d03f6321cb02c28a702367ea6bc1 Reviewed-on: http://git.am.freescale.net:8181/10871 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Yang Li <LeoLi@freescale.com> Reviewed-by: Jeffrey Ladouceur <Jeffrey.Ladouceur@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/fsldma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index d56d692..7ef96f1 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -1533,6 +1533,7 @@ out:
chan = fdev->chan[i];
if (!chan)
continue;
+ chan->pm_state = RUNNING;
spin_unlock_bh(&chan->desc_lock);
}
return -EBUSY;