linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: peter.ujfalusi@nokia.com (Peter Ujfalusi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/4] OMAP: DMA: Introduce errata handling variable, and macro
Date: Mon,  4 Oct 2010 11:18:12 +0300	[thread overview]
Message-ID: <1286180294-32618-3-git-send-email-peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <1286180294-32618-1-git-send-email-peter.ujfalusi@nokia.com>

Use flags for errata handling.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
---
 arch/arm/plat-omap/dma.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index 6914ccf..ae0ff64 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -146,6 +146,10 @@ static const u8 omap1_dma_irq[OMAP1_LOGICAL_DMA_CH_COUNT] = {
 	INT_1610_DMA_CH14, INT_1610_DMA_CH15, INT_DMA_LCD
 };
 
+/* Errata handling */
+static u16 dma_errata;
+#define IS_DMA_ERRATA(id)	(dma_errata & (id))
+
 static inline void disable_lnk(int lch);
 static void omap_disable_channel_irq(int lch);
 static inline void omap_enable_channel_irq(int lch);
@@ -2042,6 +2046,10 @@ void omap_dma_global_context_restore(void)
 
 /*----------------------------------------------------------------------------*/
 
+static void dma_errata_configure(void)
+{
+}
+
 static int __init omap_init_dma(void)
 {
 	unsigned long base;
@@ -2064,6 +2072,8 @@ static int __init omap_init_dma(void)
 		return -ENODEV;
 	}
 
+	dma_errata_configure();
+
 	omap_dma_base = ioremap(base, SZ_4K);
 	BUG_ON(!omap_dma_base);
 
-- 
1.7.3

  parent reply	other threads:[~2010-10-04  8:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-04  8:18 [PATCH v4 0/4] OMAP2/3: DMA: FIFO drain errata fixes Peter Ujfalusi
2010-10-04  8:18 ` [PATCH v4 1/4] omap: dma: Fix buffering disable bit setting for omap24xx Peter Ujfalusi
2010-10-04  9:14   ` G, Manjunath Kondaiah
2010-10-04  9:50     ` Jarkko Nikula
2010-10-04  8:18 ` Peter Ujfalusi [this message]
2010-10-04  8:18 ` [PATCH v4 3/4] OMAP2: DMA: Use errata flag for disabling buffering Peter Ujfalusi
2010-10-04  9:15   ` G, Manjunath Kondaiah
2010-10-04  8:18 ` [PATCH v4 4/4] OMAP3: DMA: Errata i541: sDMA FIFO draining does not finish Peter Ujfalusi
2010-10-04  9:17   ` G, Manjunath Kondaiah
2010-10-04 10:42     ` Peter Ujfalusi
2010-10-04 11:04       ` G, Manjunath Kondaiah
2010-10-04 16:55       ` Tony Lindgren
2010-10-04  8:29 ` [PATCH v4 0/4] OMAP2/3: DMA: FIFO drain errata fixes Peter Ujfalusi
2010-10-04  8:33   ` Peter Ujfalusi
2010-10-04 16:57     ` 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=1286180294-32618-3-git-send-email-peter.ujfalusi@nokia.com \
    --to=peter.ujfalusi@nokia.com \
    --cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).