]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
dmaengine/dw_dmac: Hibernation support in dw_dmac
authorRajeev KUMAR <rajeev-dlh.kumar@st.com>
Wed, 1 Feb 2012 10:42:17 +0000 (16:12 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 22 Feb 2012 12:45:36 +0000 (18:15 +0530)
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>
drivers/dma/dw_dmac.c

index 9b592b02b5f49a3023cdc883322af7c451448a0a..3a3d7edcd5533ea87ce2729a262c3dd1ccfac06b 100644 (file)
@@ -1562,6 +1562,10 @@ static int dw_resume_noirq(struct device *dev)
 static const struct dev_pm_ops dw_dev_pm_ops = {
        .suspend_noirq = dw_suspend_noirq,
        .resume_noirq = dw_resume_noirq,
+       .freeze_noirq = dw_suspend_noirq,
+       .thaw_noirq = dw_resume_noirq,
+       .restore_noirq = dw_resume_noirq,
+       .poweroff_noirq = dw_suspend_noirq,
 };
 
 static struct platform_driver dw_driver = {