public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: Fix Apollon and OSK ethernet IRQ flags
@ 2006-11-16 16:36 Dirk Behme
  2006-11-17 21:46 ` Tony Lindgren
  0 siblings, 1 reply; 3+ messages in thread
From: Dirk Behme @ 2006-11-16 16:36 UTC (permalink / raw)
  To: linux-omap-open-source

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


Fix IRQ flags for Apollon and OSK (OMAP5912) board. Apollon 
fix from
Kyungmin Park (kyungmin.park_at_samsung.com):

Apollon (omap2420) use IRQF_TRIGGER_RISING which means
IRQF_TRIGGER_HIGH.

Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>


[-- Attachment #2: smc_irq_flags_patch.txt --]
[-- Type: text/plain, Size: 824 bytes --]

Index: linux-osk/drivers/net/smc91x.h
===================================================================
--- linux-osk.orig/drivers/net/smc91x.h
+++ linux-osk/drivers/net/smc91x.h
@@ -193,10 +193,12 @@ SMC_outw(u16 val, void __iomem *ioaddr, 
 #include <asm/arch/cpu.h>
 
 #ifdef CONFIG_ARCH_OMAP1
-#define	SMC_IRQ_FLAGS	(machine_is_omap_innovator() ? IRQF_TRIGGER_RISING : \
-				IRQF_TRIGGER_FALLING)
+#define	SMC_IRQ_FLAGS	((machine_is_omap_innovator() ||  \
+                          machine_is_omap_osk())          \
+                          ? IRQF_TRIGGER_RISING : IRQF_TRIGGER_FALLING)
 #else
-#define SMC_IRQ_FLAGS		IRQF_TRIGGER_LOW
+#define SMC_IRQ_FLAGS	 (machine_is_omap_apollon()       \
+                          ? IRQF_TRIGGER_HIGH : IRQF_TRIGGER_LOW)
 #endif
 
 #elif	defined(CONFIG_SH_SH4202_MICRODEV)


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-18  6:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-16 16:36 [PATCH] ARM: OMAP: Fix Apollon and OSK ethernet IRQ flags Dirk Behme
2006-11-17 21:46 ` Tony Lindgren
2006-11-18  6:09   ` Dirk Behme

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