Skip to content

Commit 3f255eb

Browse files
committed
sh,sh-sci: Use NO_POLL_CHAR in the SCIF polled console code
The sci_poll_get_char() needs to return immediately if there is no input from the chip to process, and must return a value of NO_POLL_CHAR. This allows kgdboc to process multiple polled devices while kgdb is active. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Acked-by: Paul Mundt <lethal@linux-sh.org>
1 parent f5316b4 commit 3f255eb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎drivers/serial/sh-sci.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ static int sci_poll_get_char(struct uart_port *port)
151151
handle_error(port);
152152
continue;
153153
}
154-
} while (!(status & SCxSR_RDxF(port)));
154+
break;
155+
} while (1);
156+
157+
if (!(status & SCxSR_RDxF(port)))
158+
return NO_POLL_CHAR;
155159

156160
c = sci_in(port, SCxRDR);
157161

0 commit comments

Comments
 (0)