usb: serial: silence all non-critical read errors
authorJeremiah Mahler <jmmahler@gmail.com>
Sun, 11 Jan 2015 13:42:06 +0000 (05:42 -0800)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 27 Apr 2015 21:13:47 +0000 (17:13 -0400)
commit33c9cfd8cb9e2c81c9756f6aaf14aa6a6b80cc8a
treebda75a8603564047f4fe5fc8b6f56fd1f01454e4
parent2ca6349bd05914e0b61355d10df5134f7e4c67f3
usb: serial: silence all non-critical read errors

[ Upstream commit aa8e22128b40590b291cd13512098bf258a7e6c5 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/usb/serial/generic.c