]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: serial: ns16550: Correct logic for checking for character
authorSimon Glass <sjg@chromium.org>
Thu, 23 Oct 2014 03:37:03 +0000 (21:37 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 01:29:07 +0000 (19:29 -0600)
commitaea2be2012f474ddc9f372547e487ee74d4eb67a
tree948ef04a8c5185c57554d14dc076856e001b9b14
parentc487fd476c8779dbd6ee1427489f1312b34bfc5e
dm: serial: ns16550: Correct logic for checking for character

There is a bug in the logic which checks for an available character. This
can cause invalid characters to be received - this was noticed on
beaglebone. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
drivers/serial/ns16550.c