Marek Vasut
f5ba5c90d4
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 >
2020-09-01 14:46:41 +02:00
..
2020-08-03 22:19:54 -04:00
2020-08-25 13:38:29 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-08-14 15:18:30 -04:00
2020-05-18 21:19:18 -04:00
2020-06-02 17:27:04 -04:00
2020-07-11 21:30:21 +09:00
2020-07-28 19:30:39 -06:00
2020-05-18 21:19:23 -04:00
2020-08-24 14:11:31 -04:00
2020-08-25 05:41:09 +02:00
2020-07-25 14:46:57 -06:00
2020-07-27 14:16:29 +05:30
2020-07-27 14:02:28 +02:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2020-07-25 14:46:57 -06:00
2020-05-18 21:19:18 -04:00
2020-08-31 14:39:39 +05:30
2020-08-20 09:49:20 +02:00
2020-08-22 08:53:37 -06:00
2020-05-18 21:19:23 -04:00
2020-08-25 06:25:42 +02:00
2020-07-25 14:46:57 -06:00
2020-08-07 22:31:32 -04:00
2020-08-20 09:49:20 +02:00
2020-08-13 09:53:34 +02:00
2020-08-20 09:49:20 +02:00
2020-08-31 14:45:53 +02:00
2020-08-13 09:53:34 +02:00
2020-08-20 09:46:55 +02:00
2020-06-23 14:43:23 -04:00
2020-05-18 21:19:18 -04:00
2020-08-31 14:45:53 +02:00
2020-07-27 15:18:15 -04:00
2020-08-24 14:11:31 -04:00
2020-08-22 08:53:37 -06:00
2020-08-03 22:19:54 -04:00
2020-07-25 14:46:57 -06:00
2020-07-17 09:30:13 -04:00
2020-08-25 09:33:16 +08:00
2020-05-18 21:19:18 -04:00
2020-08-22 08:53:37 -06:00
2020-05-18 21:19:23 -04:00
2020-07-25 14:46:57 -06:00
2020-05-18 21:19:18 -04:00
2020-09-01 14:46:41 +02:00
2020-05-18 21:19:23 -04:00
2020-08-11 20:34:46 +05:30
2020-07-17 14:32:24 +08:00
2020-08-22 08:53:37 -06:00
2020-07-25 14:46:57 -06:00
2020-08-22 08:53:37 -06:00
2020-07-29 10:37:11 -04:00
2020-05-22 13:29:25 +02:00
2020-08-22 08:53:37 -06:00
2020-07-09 18:57:22 -06:00
2020-08-03 22:19:54 -04:00
2020-08-27 11:20:33 -04:00
2020-08-23 13:43:10 -04:00
2020-08-24 14:11:31 -04:00
2020-07-25 14:46:57 -06:00
2020-05-18 21:19:18 -04:00
2020-08-25 08:01:16 +02:00
2020-08-24 14:11:31 -04:00
2020-08-14 15:18:30 -04:00
2020-08-14 15:18:30 -04:00