* [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
* Re: [PATCH] ARM: OMAP: Fix Apollon and OSK ethernet IRQ flags
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
0 siblings, 1 reply; 3+ messages in thread
From: Tony Lindgren @ 2006-11-17 21:46 UTC (permalink / raw)
To: Dirk Behme; +Cc: linux-omap-open-source
* Dirk Behme <dirk.behme@googlemail.com> [061116 18:46]:
>
> 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>
>
> 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)
Heh, thanks pushing today. Did I manage to break any other boards? :)
Tony
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: OMAP: Fix Apollon and OSK ethernet IRQ flags
2006-11-17 21:46 ` Tony Lindgren
@ 2006-11-18 6:09 ` Dirk Behme
0 siblings, 0 replies; 3+ messages in thread
From: Dirk Behme @ 2006-11-18 6:09 UTC (permalink / raw)
Cc: linux-omap-open-source
Tony Lindgren wrote:
> * Dirk Behme <dirk.behme@googlemail.com> [061116 18:46]:
>
>>Fix IRQ flags for Apollon and OSK (OMAP5912) board.
...
> Heh, thanks pushing today. Did I manage to break any other boards? :)
Thanks for pushing! Looking at defconfigs we have
CONFIG_SMC91X=y for innovator_1610, innovator_1510, h2, h3,
h4, osk, 2430sdp, apollon and perseus2. Except perseus2 all
boards should be covered now.
Hint: perseus2 is worth a check ;)
Dirk
^ 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