summaryrefslogtreecommitdiff
path: root/drivers/w1
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2020-05-09 22:30:05 +0200
committerMarek Vasut <marek.vasut+renesas@gmail.com>2020-09-01 14:46:41 +0200
commitf5ba5c90d4b9c4d691a62eaca47dc095eefba8b1 (patch)
tree116f369fa019660eeda65f8e03e63c29797c0b29 /drivers/w1
parent23e333a5c083a000d0cabc53f7c0d261bae9e5ca (diff)
serial: sh: Improve FIFO empty check on RX
If the SCIF is receiving data quickly enough, it may happen that the SCxSR_RDxF flag is cleared in sh_serial_getc_generic(), while the FIFO still contains data. If that happens, the serial_getc_check() reports no data in the FIFO as the flag is no longer set. Add one more check, if the SCxSR_RDxF is not set, read out the FIFO level and if there are still characters in the FIFO, permit reading them out. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'drivers/w1')
0 files changed, 0 insertions, 0 deletions