serial: cpm_uart: return immediately from console poll
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 14 Sep 2018 10:32:50 +0000 (10:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 00:00:54 +0000 (17:00 -0700)
commit247cc73cd8f5e0707f19ac56affadad4300095a6
tree2b9d352b5ad68d5997c57f747b3dc6ea5132f148
parent2b7ba104769b4b4c5abe2f6d23284a2aaa495197
serial: cpm_uart: return immediately from console poll

commit be28c1e3ca29887e207f0cbcd294cefe5074bab6 upstream.

kgdb expects poll function to return immediately and
returning NO_POLL_CHAR when no character is available.

Fixes: f5316b4aea024 ("kgdb,8250,pl011: Return immediately from console poll")
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/cpm_uart/cpm_uart_core.c