From: Sergey Podstavin <spodstavin@ru.mvista.com>
To: linux-mips <linux-mips@linux-mips.org>
Subject: NEC VR5701 support
Date: Thu, 23 Feb 2006 18:43:03 +0300 [thread overview]
Message-ID: <1140709383.5741.13.camel@localhost.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: pro_mips_nec_vr5701_serial_fix.patch --]
[-- Type: text/x-patch, Size: 2056 bytes --]
Source: MontaVista Software, Inc. Sergey Podstavin <spodstavin@ru.mvista.com>
MR: 14908
Type: Defect Fix
Disposition: needs submitting to linuxmips-embedded mailing list
Signed-off-by: Sergey Podstavin <spodstavin@ru.mvista.com>
Description:
A large file transfers with errors via UART on 115200 fix
Index: linux-2.6.10/arch/mips/vr5701/vr5701_sg2/irq.c
===================================================================
--- linux-2.6.10.orig/arch/mips/vr5701/vr5701_sg2/irq.c
+++ linux-2.6.10/arch/mips/vr5701/vr5701_sg2/irq.c
@@ -79,18 +79,6 @@ asmlinkage void vr5701_sg2_irq_dispatch(
u32 bitmask;
u32 i;
u32 intPCIStatus;
- if (ddb_in32(INT1_STAT) != 0) {
- printk(KERN_CRIT "NMI = %x\n", ddb_in32(NMI_STAT));
- printk(KERN_CRIT "INT0 = %x\n", ddb_in32(INT0_STAT));
- printk(KERN_CRIT "INT1 = %x\n", ddb_in32(INT1_STAT));
- printk(KERN_CRIT "INT2 = %x\n", ddb_in32(INT2_STAT));
- printk(KERN_CRIT "INT3 = %x\n", ddb_in32(INT3_STAT));
- printk(KERN_CRIT "INT4 = %x\n", ddb_in32(INT4_STAT));
- printk(KERN_CRIT "EPCI_ERR = %x\n", ddb_in32(EPCI_ERR));
- printk(KERN_CRIT "IPCI_ERR = %x\n", ddb_in32(IPCI_ERR));
-
- panic("error interrupt has happened.");
- }
intStatus = ddb_in32(INT0_STAT);
@@ -100,7 +88,6 @@ asmlinkage void vr5701_sg2_irq_dispatch(
if (intStatus & 1 << 7)
goto IRQ_IPCI;
- IRQ_OTHER:
for (i = 0, bitmask = 1; i <= NUM_5701_IRQS; bitmask <<= 1, i++) {
/* do we need to "and" with the int mask? */
if (intStatus & bitmask) {
@@ -117,26 +104,18 @@ asmlinkage void vr5701_sg2_irq_dispatch(
do_IRQ(8 + NUM_5701_IRQS + i, regs);
}
}
- if (!intStatus)
- return;
+ return;
IRQ_IPCI:
intStatus &= ~(1 << 7);
intPCIStatus = ddb_in32(IPCI_INTS);
- if (!intPCIStatus)
- goto IRQ_OTHER;
-
for (i = 0, bitmask = 1; i < NUM_5701_IPCI_IRQS; bitmask <<= 1, i++) {
if (intPCIStatus & bitmask) {
do_IRQ(8 + NUM_5701_IRQS + NUM_5701_EPCI_IRQS + i,
regs);
}
}
-
- if (!intStatus)
- return;
-
- goto IRQ_OTHER;
+ return;
}
void __init arch_init_irq(void)
next reply other threads:[~2006-02-23 15:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-23 15:43 Sergey Podstavin [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-02-23 15:45 NEC VR5701 support Sergey Podstavin
2006-02-23 15:44 Sergey Podstavin
2006-02-23 15:43 Sergey Podstavin
2006-02-23 15:41 Sergey Podstavin
2006-02-23 15:39 Sergey Podstavin
2006-02-23 15:39 Sergey Podstavin
2006-02-23 15:38 Sergey Podstavin
2006-02-23 15:36 Sergey Podstavin
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=1140709383.5741.13.camel@localhost.localdomain \
--to=spodstavin@ru.mvista.com \
--cc=linux-mips@linux-mips.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