aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-sched.c
diff options
context:
space:
mode:
authorXenia Ragiadakou <burzalodowa@gmail.com>2013-08-29 04:45:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-30 15:02:07 -0400
commitfea26ef095cc74f1e11c046a7bf4a29160f8ffb3 (patch)
tree97b632bde8ced40413e96ad567a169acd6d85260 /drivers/usb/host/ehci-sched.c
parent2eb86032a1f6743072e52b651c9439fd4ab93573 (diff)
ehci: remove ehci_vdbg() verbose debugging statements
This patch removes ehci_vdbg debugging statements from EHCI host controller driver because they produce too much information, lowering the signal to noise ratio when debugging, and because they are not used anymore. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-sched.c')
-rw-r--r--drivers/usb/host/ehci-sched.c56
1 files changed, 7 insertions, 49 deletions
diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c
index 66310894ad97..833c35caf501 100644
--- a/drivers/usb/host/ehci-sched.c
+++ b/drivers/usb/host/ehci-sched.c
@@ -327,17 +327,8 @@ static int tt_available (
327 327
328 periodic_tt_usecs (ehci, dev, frame, tt_usecs); 328 periodic_tt_usecs (ehci, dev, frame, tt_usecs);
329 329
330 ehci_vdbg(ehci, "tt frame %d check %d usecs start uframe %d in" 330 if (max_tt_usecs[uframe] <= tt_usecs[uframe])
331 " schedule %d/%d/%d/%d/%d/%d/%d/%d\n",
332 frame, usecs, uframe,
333 tt_usecs[0], tt_usecs[1], tt_usecs[2], tt_usecs[3],
334 tt_usecs[4], tt_usecs[5], tt_usecs[6], tt_usecs[7]);
335
336 if (max_tt_usecs[uframe] <= tt_usecs[uframe]) {
337 ehci_vdbg(ehci, "frame %d uframe %d fully scheduled\n",
338 frame, uframe);
339 return 0; 331 return 0;
340 }
341 332
342 /* special case for isoc transfers larger than 125us: 333 /* special case for isoc transfers larger than 125us:
343 * the first and each subsequent fully used uframe 334 * the first and each subsequent fully used uframe
@@ -348,13 +339,8 @@ static int tt_available (
348 int ufs = (usecs / 125); 339 int ufs = (usecs / 125);
349 int i; 340 int i;
350 for (i = uframe; i < (uframe + ufs) && i < 8; i++) 341 for (i = uframe; i < (uframe + ufs) && i < 8; i++)
351 if (0 < tt_usecs[i]) { 342 if (0 < tt_usecs[i])
352 ehci_vdbg(ehci,
353 "multi-uframe xfer can't fit "
354 "in frame %d uframe %d\n",
355 frame, i);
356 return 0; 343 return 0;
357 }
358 } 344 }
359 345
360 tt_usecs[uframe] += usecs; 346 tt_usecs[uframe] += usecs;
@@ -362,12 +348,8 @@ static int tt_available (
362 carryover_tt_bandwidth(tt_usecs); 348 carryover_tt_bandwidth(tt_usecs);
363 349
364 /* fail if the carryover pushed bw past the last uframe's limit */ 350 /* fail if the carryover pushed bw past the last uframe's limit */
365 if (max_tt_usecs[7] < tt_usecs[7]) { 351 if (max_tt_usecs[7] < tt_usecs[7])
366 ehci_vdbg(ehci,
367 "tt unavailable usecs %d frame %d uframe %d\n",
368 usecs, frame, uframe);
369 return 0; 352 return 0;
370 }
371 } 353 }
372 354
373 return 1; 355 return 1;
@@ -1616,16 +1598,9 @@ static void itd_link_urb(
1616 1598
1617 next_uframe = stream->next_uframe & (mod - 1); 1599 next_uframe = stream->next_uframe & (mod - 1);
1618 1600
1619 if (unlikely (list_empty(&stream->td_list))) { 1601 if (unlikely (list_empty(&stream->td_list)))
1620 ehci_to_hcd(ehci)->self.bandwidth_allocated 1602 ehci_to_hcd(ehci)->self.bandwidth_allocated
1621 += stream->bandwidth; 1603 += stream->bandwidth;
1622 ehci_vdbg (ehci,
1623 "schedule devp %s ep%d%s-iso period %d start %d.%d\n",
1624 urb->dev->devpath, stream->bEndpointAddress & 0x0f,
1625 (stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out",
1626 urb->interval,
1627 next_uframe >> 3, next_uframe & 0x7);
1628 }
1629 1604
1630 if (ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs == 0) { 1605 if (ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs == 0) {
1631 if (ehci->amd_pll_fix == 1) 1606 if (ehci->amd_pll_fix == 1)
@@ -1760,14 +1735,9 @@ static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd)
1760 usb_amd_quirk_pll_enable(); 1735 usb_amd_quirk_pll_enable();
1761 } 1736 }
1762 1737
1763 if (unlikely(list_is_singular(&stream->td_list))) { 1738 if (unlikely(list_is_singular(&stream->td_list)))
1764 ehci_to_hcd(ehci)->self.bandwidth_allocated 1739 ehci_to_hcd(ehci)->self.bandwidth_allocated
1765 -= stream->bandwidth; 1740 -= stream->bandwidth;
1766 ehci_vdbg (ehci,
1767 "deschedule devp %s ep%d%s-iso\n",
1768 dev->devpath, stream->bEndpointAddress & 0x0f,
1769 (stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out");
1770 }
1771 1741
1772done: 1742done:
1773 itd->urb = NULL; 1743 itd->urb = NULL;
@@ -2025,17 +1995,10 @@ static void sitd_link_urb(
2025 1995
2026 next_uframe = stream->next_uframe; 1996 next_uframe = stream->next_uframe;
2027 1997
2028 if (list_empty(&stream->td_list)) { 1998 if (list_empty(&stream->td_list))
2029 /* usbfs ignores TT bandwidth */ 1999 /* usbfs ignores TT bandwidth */
2030 ehci_to_hcd(ehci)->self.bandwidth_allocated 2000 ehci_to_hcd(ehci)->self.bandwidth_allocated
2031 += stream->bandwidth; 2001 += stream->bandwidth;
2032 ehci_vdbg (ehci,
2033 "sched devp %s ep%d%s-iso [%d] %dms/%04x\n",
2034 urb->dev->devpath, stream->bEndpointAddress & 0x0f,
2035 (stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out",
2036 (next_uframe >> 3) & (ehci->periodic_size - 1),
2037 stream->interval, hc32_to_cpu(ehci, stream->splits));
2038 }
2039 2002
2040 if (ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs == 0) { 2003 if (ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs == 0) {
2041 if (ehci->amd_pll_fix == 1) 2004 if (ehci->amd_pll_fix == 1)
@@ -2149,14 +2112,9 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd)
2149 usb_amd_quirk_pll_enable(); 2112 usb_amd_quirk_pll_enable();
2150 } 2113 }
2151 2114
2152 if (list_is_singular(&stream->td_list)) { 2115 if (list_is_singular(&stream->td_list))
2153 ehci_to_hcd(ehci)->self.bandwidth_allocated 2116 ehci_to_hcd(ehci)->self.bandwidth_allocated
2154 -= stream->bandwidth; 2117 -= stream->bandwidth;
2155 ehci_vdbg (ehci,
2156 "deschedule devp %s ep%d%s-iso\n",
2157 dev->devpath, stream->bEndpointAddress & 0x0f,
2158 (stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out");
2159 }
2160 2118
2161done: 2119done:
2162 sitd->urb = NULL; 2120 sitd->urb = NULL;