summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-3.12.27/linux-3.12.27-USB-option-reduce-interrupt-urb-logging-verbosity.patch
blob: b6aaf3ad4ce2322d1044c1677498e7e55a522360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: linux-3.12.27/drivers/usb/serial/option.c
===================================================================
--- linux-3.12.27.orig/drivers/usb/serail/option.c	2015-10-12 08:23:22.665755983 -0500
+++ linux-3.12.27/drivers/usb/serial/option.c	2015-10-12 08:26:24.028205802 -0500
@@ -1927,6 +1927,8 @@ static void option_instat_callback(struct urb *urb)
			dev_dbg(dev, "%s: type %x req %x\n", __func__,
				req_pkt->bRequestType, req_pkt->bRequest);
		}
+	} 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);