From: Kevin Hilman <khilman@deeprootsystems.com>
To: Aaro Koskinen <aaro.koskinen@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] OMAP: PM: Clear DMA channel state after a wakeup
Date: Wed, 20 May 2009 07:26:01 -0700 [thread overview]
Message-ID: <871vqju9za.fsf@deeprootsystems.com> (raw)
In-Reply-To: <1242827910-16136-1-git-send-email-aaro.koskinen@nokia.com> (Aaro Koskinen's message of "Wed\, 20 May 2009 16\:58\:30 +0300")
Aaro Koskinen <aaro.koskinen@nokia.com> writes:
> Clear DMA channel states so that users can assume a known initial state.
>
> Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Thanks, pushing to PM branch.
Kevin
> ---
> arch/arm/plat-omap/dma.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
> index 9796773..cd53b28 100755
> --- a/arch/arm/plat-omap/dma.c
> +++ b/arch/arm/plat-omap/dma.c
> @@ -2322,6 +2322,8 @@ EXPORT_SYMBOL(omap_dma_global_context_save);
>
> void omap_dma_global_context_restore(void)
> {
> + int ch;
> +
> dma_write(omap_dma_global_context.dma_gcr, GCR);
> dma_write(omap_dma_global_context.dma_ocp_sysconfig,
> OCP_SYSCONFIG);
> @@ -2336,6 +2338,10 @@ void omap_dma_global_context_restore(void)
> */
> if (cpu_is_omap34xx() && (omap_type() != OMAP2_DEVICE_TYPE_GP))
> dma_write(0x3 , IRQSTATUS_L0);
> +
> + for (ch = 0; ch < dma_chan_count; ch++)
> + if (dma_chan[ch].dev_id != -1)
> + omap_clear_dma(ch);
> }
> EXPORT_SYMBOL(omap_dma_global_context_restore);
>
> --
> 1.5.4.3
prev parent reply other threads:[~2009-05-20 14:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-20 13:58 [PATCH] OMAP: PM: Clear DMA channel state after a wakeup Aaro Koskinen
2009-05-20 14:26 ` Kevin Hilman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871vqju9za.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=aaro.koskinen@nokia.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.