Searched hist:a7207e9835a4f245c8c693170906fda0980273f3 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/usb/serial/ |
H A D | cp210x.c | diff a7207e9835a4f245c8c693170906fda0980273f3 Mon Jul 13 12:55:14 CEST 2020 Johan Hovold <johan@kernel.org> USB: serial: cp210x: add support for line-status events
Add support for line-status events that specifically can be used to detect and report parity errors.
Enable the device's event-insertion mode whenever input-parity checking is requested. This will insert line and modem status events into the data stream.
Note that modem-status changes appear to be buffered until a character is received (at least on CP2102) and support is therefore left unimplemented.
On at least one type of these chips (CP2102), line breaks are not reported as expected either (regardless of whether SERIAL_BREAK_CHAR is set) so do not enable event-mode when !IGNBRK is requested for now.
Link: https://lore.kernel.org/r/20200713105517.27796-3-johan@kernel.org Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
|