aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--drivers/usb/host/ehci-hub.c6
-rw-r--r--drivers/usb/host/ehci-q.c7
-rw-r--r--drivers/usb/host/ehci-sched.c56
-rw-r--r--drivers/usb/host/ehci.h5
4 files changed, 7 insertions, 67 deletions
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c
index 3bf9f482710c..835fc0844a66 100644
--- a/drivers/usb/host/ehci-hub.c
+++ b/drivers/usb/host/ehci-hub.c
@@ -211,8 +211,6 @@ static void ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci,
211 else 211 else
212 t2 |= PORT_WKOC_E | PORT_WKCONN_E; 212 t2 |= PORT_WKOC_E | PORT_WKCONN_E;
213 } 213 }
214 ehci_vdbg(ehci, "port %d, %08x -> %08x\n",
215 port + 1, t1, t2);
216 ehci_writel(ehci, t2, reg); 214 ehci_writel(ehci, t2, reg);
217 } 215 }
218 216
@@ -302,8 +300,6 @@ static int ehci_bus_suspend (struct usb_hcd *hcd)
302 } 300 }
303 301
304 if (t1 != t2) { 302 if (t1 != t2) {
305 ehci_vdbg (ehci, "port %d, %08x -> %08x\n",
306 port + 1, t1, t2);
307 ehci_writel(ehci, t2, reg); 303 ehci_writel(ehci, t2, reg);
308 changed = 1; 304 changed = 1;
309 } 305 }
@@ -483,7 +479,6 @@ static int ehci_bus_resume (struct usb_hcd *hcd)
483 if (test_bit(i, &resume_needed)) { 479 if (test_bit(i, &resume_needed)) {
484 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME); 480 temp &= ~(PORT_RWC_BITS | PORT_SUSPEND | PORT_RESUME);
485 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); 481 ehci_writel(ehci, temp, &ehci->regs->port_status [i]);
486 ehci_vdbg (ehci, "resumed port %d\n", i + 1);
487 } 482 }
488 } 483 }
489 484
@@ -1204,7 +1199,6 @@ static int ehci_hub_control (
1204 wIndex + 1); 1199 wIndex + 1);
1205 temp |= PORT_OWNER; 1200 temp |= PORT_OWNER;
1206 } else { 1201 } else {
1207 ehci_vdbg (ehci, "port %d reset\n", wIndex + 1);
1208 temp |= PORT_RESET; 1202 temp |= PORT_RESET;
1209 temp &= ~PORT_PE; 1203 temp &= ~PORT_PE;
1210 1204
diff --git a/drivers/usb/host/ehci-q.c b/drivers/usb/host/ehci-q.c
index 33336874c47b..cf9f2fb78ff2 100644
--- a/drivers/usb/host/ehci-q.c
+++ b/drivers/usb/host/ehci-q.c
@@ -240,13 +240,6 @@ static int qtd_copy_status (
240 } else { /* unknown */ 240 } else { /* unknown */
241 status = -EPROTO; 241 status = -EPROTO;
242 } 242 }
243
244 ehci_vdbg (ehci,
245 "dev%d ep%d%s qtd token %08x --> status %d\n",
246 usb_pipedevice (urb->pipe),
247 usb_pipeendpoint (urb->pipe),
248 usb_pipein (urb->pipe) ? "in" : "out",
249 token, status);
250 } 243 }
251 244
252 return status; 245 return status;
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;
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 2822e79e1fbc..6067d4bcc037 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -782,11 +782,6 @@ static inline u32 hc32_to_cpup (const struct ehci_hcd *ehci, const __hc32 *x)
782#define ehci_warn(ehci, fmt, args...) \ 782#define ehci_warn(ehci, fmt, args...) \
783 dev_warn(ehci_to_hcd(ehci)->self.controller , fmt , ## args) 783 dev_warn(ehci_to_hcd(ehci)->self.controller , fmt , ## args)
784 784
785#ifdef VERBOSE_DEBUG
786# define ehci_vdbg ehci_dbg
787#else
788 static inline void ehci_vdbg(struct ehci_hcd *ehci, ...) {}
789#endif
790 785
791#ifndef DEBUG 786#ifndef DEBUG
792#define STUB_DEBUG_FILES 787#define STUB_DEBUG_FILES