From: Tony Lindgren <tony@atomide.com>
To: "Syed Mohammed, Khasim" <x0khasim@ti.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] H4 / 2430SDP ethernet IRQ flags fix
Date: Thu, 16 Nov 2006 01:25:23 +0200 [thread overview]
Message-ID: <20061115232522.GG21064@atomide.com> (raw)
In-Reply-To: <77C7F7CB1230A74A9D19C0C111E6EDBE01D9199A@DLEE09.ent.ti.com>
[-- Attachment #1: Type: text/plain, Size: 1634 bytes --]
Hi,
* Syed Mohammed, Khasim <x0khasim@ti.com> [061110 21:42]:
>
> Hi Tony,
>
> The attached patch configures the Ethernet IRQ flag on H4 / 2430SDP to
> IRQF_TRIGGER_LOW
>
> This has been tested and validated on 2430 SDP and H4 board.
>
> Thanks & Regards,
> Khasim
Content-Description: ethernet_fix_H4_2430.patch
> This patch configures the Ethernet IRQ flag on H4 / 2430SDP to IRQF_TRIGGER_LOW.
>
> Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
>
> Files changed:
> smc91x.h | 7 ++++---
> 1 files changed, 4 insertions(+), 3 deletions(-)
>
> ==============================================================================
> diff -purN linux-omap/drivers/net/smc91x.h dev-linux-omap-2.6.git/drivers/net/smc91x.h
> --- linux-omap/drivers/net/smc91x.h 2006-11-02 00:16:21.000000000 -0600
> +++ dev-linux-omap-2.6.git/drivers/net/smc91x.h 2006-11-10 13:22:53.000000000 -0600
> @@ -193,11 +193,12 @@ SMC_outw(u16 val, void __iomem *ioaddr,
> #include <asm/arch/cpu.h>
>
> #define SMC_IRQ_FLAGS (( \
> - machine_is_omap_h2() \
> + machine_is_omap_h2() \
> || machine_is_omap_h3() \
> - || machine_is_omap_h4() \
> || (machine_is_omap_innovator() && !cpu_is_omap1510()) \
> - ) ? IRQF_TRIGGER_FALLING : IRQF_TRIGGER_RISING)
> + )? IRQF_TRIGGER_FALLING : \
> + ((machine_is_omap_h4() || machine_is_omap_2430sdp())? \
> + IRQF_TRIGGER_LOW : IRQF_TRIGGER_RISING))
>
>
> #elif defined(CONFIG_SH_SH4202_MICRODEV)
Well it's getting messy, and now we need to patch it when new machines
are added.
How about something like the following patch? Does the following patch
work for you?
Regards,
Tony
[-- Attachment #2: patch-omap-smc-trigger --]
[-- Type: text/plain, Size: 964 bytes --]
smc91x: Clean up omap interrupt level
Since omap1 does not have level GPIO interrupts, all omap1 class
processors should use falling edge, except for Innovator which
routes the interrupt via FPGA and needs rising edge. All omap2
class processors should use low level interrupt.
Signed-off-by: Tony Lindgren <tony@atomide.com>
--- a/drivers/net/smc91x.h
+++ b/drivers/net/smc91x.h
@@ -192,13 +192,12 @@ #define SMC_outsw(a, r, p, l) writesw((a
#include <asm/mach-types.h>
#include <asm/arch/cpu.h>
-#define SMC_IRQ_FLAGS (( \
- machine_is_omap_h2() \
- || machine_is_omap_h3() \
- || machine_is_omap_h4() \
- || (machine_is_omap_innovator() && !cpu_is_omap1510()) \
- ) ? IRQF_TRIGGER_FALLING : IRQF_TRIGGER_RISING)
-
+#ifdef CONFIG_ARCH_OMAP1
+#define SMC_IRQ_FLAGS (machine_is_omap_innovator() ? IRQF_TRIGGER_RISING : \
+ IRQF_TRIGGER_FALLING)
+#else
+#define SMC_IRQ_FLAGS IRQF_TRIGGER_LOW
+#endif
#elif defined(CONFIG_SH_SH4202_MICRODEV)
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2006-11-15 23:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-10 19:09 [PATCH] Resubmitting 2430 Support - 2430 include/asm-arm/arch-omap Syed Mohammed, Khasim
2006-11-10 19:36 ` [PATCH] H4 / 2430SDP ethernet IRQ flags fix Syed Mohammed, Khasim
2006-11-15 23:25 ` Tony Lindgren [this message]
2006-11-15 23:35 ` Syed Mohammed, Khasim
2006-11-16 0:32 ` 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=20061115232522.GG21064@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap-open-source@linux.omap.com \
--cc=x0khasim@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