KGDB-8250: fix initial interrupt
PATCH 1/1 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 <[email protected]>
--- drivers/serial/8250_kgdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/serial/8250_kgdb.c +3 -3
@@ -124,10 +124,10 @@ static irqreturn_t kgdb8250_interrupt(inif ((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 ; }