From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nishanth Menon Subject: Re: [PATCH v4] ARM: omap: edma: add suspend suspend/resume hooks Date: Thu, 7 Nov 2013 09:34:31 -0600 Message-ID: <527BB307.7090401@ti.com> References: <1383164468-4610-1-git-send-email-zonque@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1383164468-4610-1-git-send-email-zonque@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Daniel Mack , linux-omap@vger.kernel.org, joelf@ti.com, gururaja.hebbar@ti.com, balajitk@ti.com Cc: nsekhar@ti.com, s.neumann@raumfeld.com, linux-arm-kernel@lists.infradead.org, Russ.Dill@ti.com List-Id: linux-omap@vger.kernel.org On 10/30/2013 03:21 PM, Daniel Mack wrote: [...] > diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c > index 8e1a024..f15cdb9 100644 > --- a/arch/arm/common/edma.c > +++ b/arch/arm/common/edma.c [...] > +static int edma_pm_suspend(struct device *dev) > +{ > + int j; > + > + pm_runtime_get_sync(dev); > + error checks? > + for (j = 0; j < arch_num_cc; j++) { > + struct edma *ecc = edma_cc[j]; > + > + disable_irq(ecc->irq_res_start); > + disable_irq(ecc->irq_res_end); > + } > + > + pm_runtime_put_sync(dev); > + > + return 0; > +} > + > +static int edma_pm_resume(struct device *dev) > +{ > + int i, j; > + > + pm_runtime_get_sync(dev); error checks? [...] -- Regards, Nishanth Menon From mboxrd@z Thu Jan 1 00:00:00 1970 From: nm@ti.com (Nishanth Menon) Date: Thu, 7 Nov 2013 09:34:31 -0600 Subject: [PATCH v4] ARM: omap: edma: add suspend suspend/resume hooks In-Reply-To: <1383164468-4610-1-git-send-email-zonque@gmail.com> References: <1383164468-4610-1-git-send-email-zonque@gmail.com> Message-ID: <527BB307.7090401@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 10/30/2013 03:21 PM, Daniel Mack wrote: [...] > diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c > index 8e1a024..f15cdb9 100644 > --- a/arch/arm/common/edma.c > +++ b/arch/arm/common/edma.c [...] > +static int edma_pm_suspend(struct device *dev) > +{ > + int j; > + > + pm_runtime_get_sync(dev); > + error checks? > + for (j = 0; j < arch_num_cc; j++) { > + struct edma *ecc = edma_cc[j]; > + > + disable_irq(ecc->irq_res_start); > + disable_irq(ecc->irq_res_end); > + } > + > + pm_runtime_put_sync(dev); > + > + return 0; > +} > + > +static int edma_pm_resume(struct device *dev) > +{ > + int i, j; > + > + pm_runtime_get_sync(dev); error checks? [...] -- Regards, Nishanth Menon