[<prev] [next>] [day] [month] [year] [list]
Message-ID: <47AAB57C.7090501@web.de>
Date: Thu, 07 Feb 2008 08:38:36 +0100
From: Jan Kiszka <jan.kiszka@....de>
To: Jason Wessel <jason.wessel@...driver.com>
CC: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
kgdb-bugreport@...ts.sourceforge.net
Subject: [PATCH] KGDB-8250: fix initial interrupt
Latest rework of kgdb8250_interrupt caused a regression in that the new
code wrongly assumes a ctrl-c character is also sent on initial connect
from the host. Here is a fix.
Signed-off-by: Jan Kiszka <jan.kiszka@....de>
---
drivers/serial/8250_kgdb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Index: b/drivers/serial/8250_kgdb.c
===================================================================
--- a/drivers/serial/8250_kgdb.c
+++ b/drivers/serial/8250_kgdb.c
@@ -124,10 +124,10 @@ static irqreturn_t kgdb8250_interrupt(in
if ((iir & UART_IIR_ID) == UART_IIR_RDI) {
c = kgdb8250_ioread(UART_RX);
- if (c == 0x03)
- breakpoint();
- else
+ if (c != 0x03)
buffered_char = c;
+ if (c == 0x03 || !kgdb_connected)
+ breakpoint();
}
return IRQ_HANDLED;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists