USB: serial: cp210x: add support for TIOCGICOUNT
authorJohan Hovold <johan@kernel.org>
Mon, 13 Jul 2020 10:55:15 +0000 (12:55 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 14 Jul 2020 09:50:28 +0000 (11:50 +0200)
commitde9c7e9f278492cee9f217ffc339a398536c7e51
tree989ec73c27ddf3ff20a1652669ad99ac46cb3da1
parenta7207e9835a4f245c8c693170906fda0980273f3
USB: serial: cp210x: add support for TIOCGICOUNT

Enable TIOCGICOUNT to allow reading out the (unused) interrupt counters
and error statistics.

Note that modem-status events are currently left unimplemented as they
appear to be buffered on at least CP2102 and therefore cannot be used to
implement TIOCMIWAIT.

Link: https://lore.kernel.org/r/20200713105517.27796-4-johan@kernel.org
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cp210x.c