]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
tty: serial: fsl_lpuart: fix lpuart32_poll_get_char
authorPeng Fan <peng.fan@nxp.com>
Tue, 29 Sep 2020 09:55:09 +0000 (17:55 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:49:19 +0000 (14:49 +0100)
commit2ff783b8f2537633722792a0700bce6b743b6b0d
tree56acde7dbee576a110de1f85c280f9117ff9aacc
parent3f01a3e4188ecd721c577458a26975a5c2e76aa1
tty: serial: fsl_lpuart: fix lpuart32_poll_get_char

BugLink: https://bugs.launchpad.net/bugs/1902115
commit 29788ab1d2bf26c130de8f44f9553ee78a27e8d5 upstream.

The watermark is set to 1, so we need to input two chars to trigger RDRF
using the original logic. With the new logic, we could always get the
char when there is data in FIFO.

Suggested-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20200929095509.21680-1-peng.fan@nxp.com
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
drivers/tty/serial/fsl_lpuart.c