USB: option: silence interrupt errors
authorJohan Hovold <johan@kernel.org>
Mon, 17 Aug 2015 15:35:23 +0000 (17:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2015 17:07:09 +0000 (10:07 -0700)
Avoid spamming the logs (e.g. with -EPROTO errors) when attempting to
resubmit the interrupt urb while a disconnect of an in-use device is
being processed.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/option.c

index 876423b8892c96f80930fa7a103f36370e519dfe..6d1941a2396a7c76dc8a9a4d905bb1850c63282d 100644 (file)
@@ -1941,7 +1941,7 @@ static void option_instat_callback(struct urb *urb)
        } else if (status == -ENOENT || status == -ESHUTDOWN) {
                dev_dbg(dev, "%s: urb stopped: %d\n", __func__, status);
        } else
-               dev_err(dev, "%s: error %d\n", __func__, status);
+               dev_dbg(dev, "%s: error %d\n", __func__, status);
 
        /* Resubmit urb so we continue receiving IRQ data */
        if (status != -ESHUTDOWN && status != -ENOENT) {