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 <[EMAIL PROTECTED]> --- 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 [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/