aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw_dmac.c
diff options
context:
space:
mode:
authorRajeev KUMAR <rajeev-dlh.kumar@st.com>2012-02-01 05:42:17 -0500
committerVinod Koul <vinod.koul@linux.intel.com>2012-02-22 07:45:36 -0500
commit7414a1b8b2b99093d6a271a1220557e87dc1ae94 (patch)
treeb90b71cc10027e731a3ee2be091f6c62e3a8294f /drivers/dma/dw_dmac.c
parent91c1c9e36d9450974c9f04cf961d0b45aafca507 (diff)
dmaengine/dw_dmac: Hibernation support in dw_dmac
The suspend and resume implementation is through dev_pm_ops in dmac. So in order to support hibernation, freeze, thaw, restore and poweroff features are required. Signed-off-by: Rajeev Kumar <rajeev-dlh.kumar@st.com> Acked-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma/dw_dmac.c')
-rw-r--r--drivers/dma/dw_dmac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
index 9b592b02b5f4..3a3d7edcd553 100644
--- a/drivers/dma/dw_dmac.c
+++ b/drivers/dma/dw_dmac.c
@@ -1562,6 +1562,10 @@ static int dw_resume_noirq(struct device *dev)
1562static const struct dev_pm_ops dw_dev_pm_ops = { 1562static const struct dev_pm_ops dw_dev_pm_ops = {
1563 .suspend_noirq = dw_suspend_noirq, 1563 .suspend_noirq = dw_suspend_noirq,
1564 .resume_noirq = dw_resume_noirq, 1564 .resume_noirq = dw_resume_noirq,
1565 .freeze_noirq = dw_suspend_noirq,
1566 .thaw_noirq = dw_resume_noirq,
1567 .restore_noirq = dw_resume_noirq,
1568 .poweroff_noirq = dw_suspend_noirq,
1565}; 1569};
1566 1570
1567static struct platform_driver dw_driver = { 1571static struct platform_driver dw_driver = {