]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:51:12 +0000 (19:51 -0600)
commitd01d92cf69756d7260bcdd8f9b8dbc1c57a07028
treeb763bc214734dfc9457a4b283d865438bed09472
parent8ca451e6d3db0e0f0d18705848a6e7d519834f41
serial: cpm_uart: return immediately from console poll

BugLink: https://bugs.launchpad.net/bugs/1836287
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/tty/serial/cpm_uart/cpm_uart_core.c