lkml.org 
[lkml]   [2018]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] serial: 8250: Handle case port doesn't have TEMT interrupt using em485.
> +		} else {
> + while ((lsr & BOTH_EMPTY) != BOTH_EMPTY) {
> + lsr = serial_in(p, UART_LSR);
> + cpu_relax();
> + }
> + }

This still needs a timeout in case some kind of hardware flow control line
is asserted and therefore the byte is staying put.

Alan

\
 
 \ /
  Last update: 2018-06-13 19:01    [W:0.235 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site