Skip to content

USB: serial: cp210x: add support for line-status events

Johan Hovold linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5USB: serial: cp210x: disable interface on errors in opendrivers/usb/serial/cp210x.c+10 -10 replies
2/5USB: serial: cp210x: add support for line-status eventsdrivers/usb/serial/cp210x.c+186 -30 replies
3/5USB: serial: cp210x: add support for TIOCGICOUNTdrivers/usb/serial/cp210x.c+1 -00 replies
4/5USB: serial: cp210x: drop unnecessary packed attributesdrivers/usb/serial/cp210x.c+3 -30 replies
5/5USB: serial: cp210x: use in-kernel types in port datadrivers/usb/serial/cp210x.c+1 -10 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGreg Kroah-Hartman
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] USB: serial: cp210x: add support for line-status events

This series add supports for line-status events that specifically can be used to detect parity errors.

The implementation relies on the device's event-insertion mode, which can also be used to detect line-breaks and modem status changes. But as this doesn't seem to work as expected on CP2102, support has been left unimplemented for now.

Included are also a couple of cleanups.

Johan

Changes since RFC [1]:
- drop sysrq support which relies on break detection
- use 0xec (instead of 0xff) as escape character

[1] https://lore.kernel.org/r/20200703150104.GE3453@localhost

Johan Hovold (5):
USB: serial: cp210x: disable interface on errors in open
USB: serial: cp210x: add support for line-status events
USB: serial: cp210x: add support for TIOCGICOUNT
USB: serial: cp210x: drop unnecessary packed attributes
USB: serial: cp210x: use in-kernel types in port data

 drivers/usb/serial/cp210x.c | 209 ++++++++++++++++++++++++++++++++++--
 1 file changed, 201 insertions(+), 8 deletions(-)
Signature · 1 line
2.26.2