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>
Tue, 18 Sep 2018 13:22:15 +0000 (15:22 +0200)
commitbe28c1e3ca29887e207f0cbcd294cefe5074bab6
tree91546e6ee9f9c0ef119983ecee1792adc7e64996
parent3216c622a24b0ebb9c159a8d1daf7f17a106b3f5
serial: cpm_uart: return immediately from console poll

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