Home
last modified time | relevance | path

Searched hist:f61309d9c96a308465bec9d2e5206da265b075a0 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/usb/serial/
H A Dcp210x.cdiff f61309d9c96a308465bec9d2e5206da265b075a0 Mon Jan 18 12:13:27 CET 2021 Johan Hovold <johan@kernel.org> USB: serial: cp210x: set IXOFF thresholds

At least CP2102 requires the XON/XOFF limits to be initialised in order
for software input flow control (IXOFF) to work. Specifically, XOFF is
never sent if the XOFF limit is left at its default value of zero.

Set the limits so that input is throttled when the FIFO free level drops
below 128 bytes and restarted when the FIFO fill level drops below 128
bytes.

Note that the threshold values have been chosen so that they can be used
also with CP2105 which has the smallest FIFO of the currently supported
device types (288 byte for the SCI port). If needed the limits can be
made device specific later.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>