USB: serial: continue to write on errors
authorJohan Hovold <jhovold@gmail.com>
Wed, 12 Mar 2014 18:09:40 +0000 (19:09 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 12 Mar 2014 19:44:49 +0000 (12:44 -0700)
commitbd58c7bd6fd5f803b4127717bda9cc6c30d0c806
tree6c25cb3bdac38906157f57bc6976c08beee59f5c
parentfc11efe2800f2f9ba2ccb268321642b7e9f73a65
USB: serial: continue to write on errors

Do not discard buffered data and make sure to try to resubmit the write
urbs on errors.

Currently a recoverable error would lead to more data than necessary
being dropped.

Also upgrade error messages from debug to error log level.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/serial/generic.c