From: Tony Lindgren <tony@atomide.com>
To: "Pandita, Vikram" <vikram.pandita@ti.com>
Cc: "Gadiyar, Anand" <gadiyar@ti.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH OMAPZOOM] OMAP: DMA: Fix CCR programming for request line > 63
Date: Thu, 8 Jan 2009 15:31:20 +0200 [thread overview]
Message-ID: <20090108133119.GH27566@atomide.com> (raw)
In-Reply-To: <FCCFB4CDC6E5564B9182F639FC356087024A0ADF11@dbde02.ent.ti.com>
* Pandita, Vikram <vikram.pandita@ti.com> [081111 15:34]:
> Pushed to zoom tree.
Sorry for the long delay with this. Pushing to l-o tree and
added to omap-fixes queue.
Tony
> >-----Original Message-----
> >From: Gadiyar, Anand
> >Sent: Monday, November 10, 2008 5:08 AM
> >To: linux-omap@vger.kernel.org
> >Cc: Pandita, Vikram; tony@atomide.com
> >Subject: [PATCH OMAPZOOM] OMAP: DMA: Fix CCR programming for request line > 63
> >
> >From: Anand Gadiyar <gadiyar@ti.com>
> >
> >Bug in existing code causes synchro control to be set +32 if request
> >line greater than 63 is used.
> >
> >Reported by Wenbiao Wang
> >
> >Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
> >---
> >Patch generated against OMAPZOOM tree. Will apply against
> >linux-omap as well with an offset of 8 lines.
> >
> >diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
> >index 562089e..b38a362 100644
> >--- a/arch/arm/plat-omap/dma.c
> >+++ b/arch/arm/plat-omap/dma.c
> >@@ -287,10 +287,7 @@ void omap_set_dma_transfer_params(int lch, int data_type, int elem_count,
> >
> > val = dma_read(CCR(lch));
> > val &= ~(3 << 19);
> >- if (dma_trigger > 63)
> >- val |= 1 << 20;
> >- if (dma_trigger > 31)
> >- val |= 1 << 19;
> >+ val |= ((dma_trigger & ~(0x1f)) << 14);
> >
> > val &= ~(0x1f);
> > val |= (dma_trigger & 0x1f);
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-01-08 13:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-10 11:08 [PATCH OMAPZOOM] OMAP: DMA: Fix CCR programming for request line > 63 Gadiyar, Anand
2008-11-11 13:33 ` Pandita, Vikram
2009-01-08 13:31 ` Tony Lindgren [this message]
2009-01-08 13:40 ` twebb
2009-01-08 13:52 ` Tony Lindgren
2009-01-08 14:08 ` twebb
2009-01-08 14:20 ` Tony Lindgren
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=20090108133119.GH27566@atomide.com \
--to=tony@atomide.com \
--cc=gadiyar@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=vikram.pandita@ti.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox