From: Johan Hovold Date: Mon, 17 Aug 2015 15:35:23 +0000 (+0200) Subject: USB: option: silence interrupt errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9257f1daa8befd5c0a343031dd870236550e00c5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: option: silence interrupt errors 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 876423b8892c..6d1941a2396a 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -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) {