• P
    serial: imx: Fix x_char handling and tx flow control · 5e42e9a3
    Peter Hurley 提交于
    The serial core expects the UART driver to transmit x_char
    (START/STOP chars) even if tx is stopped and before data already
    in the tx ring buffer if possible. Also, sending x_char must
    not cause additional data in the tx ring buffer to transmit
    if tx is stopped.
    
    Cause x_char to be transmitted before any other data is sent.
    Auto-stop tx if the tx ring buffer is empty or tx should be stopped.
    Only perform one write wakeup if tx ring buffer space is below
    threshold.
    
    x_char handling in DMA mode is still broken; add FIXME.
    Signed-off-by: NPeter Hurley <peter@hurleysoftware.com>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    5e42e9a3
imx.c 51.3 KB