]> git.baikalelectronics.ru Git - kernel.git/commit
usb: serial: silence all non-critical read errors
authorJeremiah Mahler <jmmahler@gmail.com>
Sun, 11 Jan 2015 13:42:06 +0000 (05:42 -0800)
committerJohan Hovold <johan@kernel.org>
Mon, 12 Jan 2015 09:23:35 +0000 (10:23 +0100)
commit300892a7425993541807ec70cbe592043e93f4d0
tree8f77b8b25adadeb68c6dbdaca1dbbf0fc4ff81c4
parent7695e9b6516785b7c18456c57da18fbe63ad62a9
usb: serial: silence all non-critical read errors

If a USB serial device is unplugged while there is an active program
using the device it may spam the logs with -EPROTO (71) messages as it
attempts to retry.

Most serial usb drivers (metro-usb, pl2303, mos7840, ...) only output
these messages for debugging.  The generic driver treats these as
errors.

Change the default output for the generic serial driver from error to
debug to silence these non-critical errors.

Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/generic.c