public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* OMAP1 realtime patch patch-2.6.23-rt1-omap1
@ 2007-10-12 15:03 Dirk Behme
  0 siblings, 0 replies; only message in thread
From: Dirk Behme @ 2007-10-12 15:03 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 306 bytes --]


Update of OMAP1 realtime patch to most recent -rt patch patch-2.6.23-rt1.

As ususal, use recent OMAP git (2.6.23-omap1) as starting point, then
apply patch-2.6.23-rt1 [1] ignoring conflicts, and on top of this
patch in attachment.

Cheers,

Dirk

[1] http://www.kernel.org/pub/linux/kernel/projects/rt/


[-- Attachment #2: patch-2.6.23-rt1-omap1 --]
[-- Type: text/plain, Size: 1890 bytes --]

Index: linux-osk/kernel/irq/manage.c
===================================================================
--- linux-osk.orig/kernel/irq/manage.c
+++ linux-osk/kernel/irq/manage.c
@@ -637,6 +637,7 @@ static void thread_simple_irq(irq_desc_t
 	unsigned int irq = desc - irq_desc;
 	irqreturn_t action_ret;
 
+	restart:
 	if (action && !desc->depth) {
 		spin_unlock(&desc->lock);
 		action_ret = handle_IRQ_event(irq, action);
@@ -645,6 +646,19 @@ static void thread_simple_irq(irq_desc_t
 		if (!noirqdebug)
 			note_interrupt(irq, desc, action_ret);
 	}
+
+	/*
+	 * Some boards will disable an interrupt when it
+	 * sets IRQ_PENDING . So we have to remove the flag
+	 * and re-enable to handle it.
+	 */
+	if (desc->status & IRQ_PENDING) {
+		desc->status &= ~IRQ_PENDING;
+		if (desc->chip)
+			desc->chip->enable(irq);
+		goto restart;
+	}
+
 	desc->status &= ~IRQ_INPROGRESS;
 }
 
Index: linux-osk/sound/arm/omap/omap-alsa.c
===================================================================
--- linux-osk.orig/sound/arm/omap/omap-alsa.c
+++ linux-osk/sound/arm/omap/omap-alsa.c
@@ -165,10 +165,8 @@ static u_int audio_get_dma_pos(struct au
  */
 static void audio_stop_dma(struct audio_stream *s)
 {
-	unsigned long flags;
 	ADEBUG();
 
-	spin_lock_irqsave(&s->dma_lock, flags);
 	s->active = 0;
 	s->period = 0;
 	s->periods = 0;
@@ -177,8 +175,6 @@ static void audio_stop_dma(struct audio_
 	omap_stop_alsa_sound_dma(s);
 
 	omap_clear_alsa_sound_dma(s);
-
-	spin_unlock_irqrestore(&s->dma_lock, flags);
 }
 
 /*
Index: linux-osk/arch/arm/plat-omap/gpio.c
===================================================================
--- linux-osk.orig/arch/arm/plat-omap/gpio.c
+++ linux-osk/arch/arm/plat-omap/gpio.c
@@ -150,7 +150,7 @@ struct gpio_bank {
 	u32 saved_fallingdetect;
 	u32 saved_risingdetect;
 #endif
-	spinlock_t lock;
+	raw_spinlock_t lock;
 };
 
 #define METHOD_MPUIO		0


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-12 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-12 15:03 OMAP1 realtime patch patch-2.6.23-rt1-omap1 Dirk Behme

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox