041f01e8f8310d8af34902ceaea83f20ce236051
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0148-dcw_otg-Make-trimming-messages-less-noisy.patch
1 From 1e2926e39764ae4642df940fa799657c204399a9 Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Wed, 17 Feb 2016 19:02:31 +0000
4 Subject: [PATCH 148/304] dcw_otg: Make trimming messages less noisy
5
6 ---
7 drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c | 6 ++++--
8 1 file changed, 4 insertions(+), 2 deletions(-)
9
10 --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
11 +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
12 @@ -738,7 +738,8 @@ static int update_urb_state_xfer_comp(dw
13 &short_read);
14
15 if (urb->actual_length + xfer_length > urb->length) {
16 - DWC_WARN("%s(): trimming xfer length\n", __func__);
17 + printk_once(KERN_DEBUG "dwc_otg: DEVICE:%03d : %s:%d:trimming xfer length\n",
18 + hc->dev_addr, __func__, __LINE__);
19 xfer_length = urb->length - urb->actual_length;
20 }
21
22 @@ -1430,7 +1431,8 @@ static void update_urb_state_xfer_intr(d
23 halt_status, NULL);
24
25 if (urb->actual_length + bytes_transferred > urb->length) {
26 - DWC_WARN("%s(): trimming xfer length\n", __func__);
27 + printk_once(KERN_DEBUG "dwc_otg: DEVICE:%03d : %s:%d:trimming xfer length\n",
28 + hc->dev_addr, __func__, __LINE__);
29 bytes_transferred = urb->length - urb->actual_length;
30 }
31