* [PATCH V2] dmaengine/dw_dmac: Hibernation support in dw_dmac
@ 2012-01-12 8:47 Rajeev Kumar
2012-01-12 8:58 ` Viresh Kumar
0 siblings, 1 reply; 2+ messages in thread
From: Rajeev Kumar @ 2012-01-12 8:47 UTC (permalink / raw)
To: viresh.kumar, vinod.koul
Cc: linus.walleij, mirko.gardi, bhupesh.sharma, deepak.sikri,
shiraz.hashim, vipin.kumar, vipulkumar.samar, pratyush.anand,
rajeev-dlh.kumar, armando.visconti, dan.j.williams, linux-kernel,
linux-arm-kernel, linux
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>
---
drivers/dma/dw_dmac.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
index 9b592b0..3a3d7ed 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)
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 = {
--
1.7.2.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH V2] dmaengine/dw_dmac: Hibernation support in dw_dmac
2012-01-12 8:47 [PATCH V2] dmaengine/dw_dmac: Hibernation support in dw_dmac Rajeev Kumar
@ 2012-01-12 8:58 ` Viresh Kumar
0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2012-01-12 8:58 UTC (permalink / raw)
To: Rajeev KUMAR
Cc: vinod.koul@intel.com, linus.walleij@linaro.org, Mirko GARDI,
Bhupesh SHARMA, Deepak SIKRI, Shiraz HASHIM, Vipin KUMAR,
Vipul Kumar SAMAR, Pratyush ANAND, Armando VISCONTI,
dan.j.williams@intel.com, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk
On 1/12/2012 2:17 PM, Rajeev KUMAR wrote:
> 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>
> ---
> drivers/dma/dw_dmac.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
> index 9b592b0..3a3d7ed 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)
> 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,
Acked-by: Viresh Kumar <viresh.kumar@st.com>
--
viresh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-12 8:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 8:47 [PATCH V2] dmaengine/dw_dmac: Hibernation support in dw_dmac Rajeev Kumar
2012-01-12 8:58 ` Viresh Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox