aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2011-12-15 20:30:45 -0500
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2011-12-22 18:52:47 -0500
commitb0a465d86af4d1b0b8ce64a413f9b9e1cf5a557e (patch)
tree47abc3022239feb7f53c295d49f960d5a378500c /drivers
parent3d616f5af2a1cf7acce712993402b0ccbb2ff2cc (diff)
xhci: Remove debugging about toggling cycle bits.
The code for toggling the cycle bits when the ring wraps around has worked for years. The print statement alone is not enough to indicate there's something wrong with that code. Now that full transfer tracing has been ripped out, the print statement or lack thereof won't help without context of where the enqueue pointer is. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/xhci-ring.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 8638e101b3c1..1fdb7e1cca3f 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -155,10 +155,6 @@ static void inc_deq(struct xhci_hcd *xhci, struct xhci_ring *ring, bool consumer
155 while (last_trb(xhci, ring, ring->deq_seg, next)) { 155 while (last_trb(xhci, ring, ring->deq_seg, next)) {
156 if (consumer && last_trb_on_last_seg(xhci, ring, ring->deq_seg, next)) { 156 if (consumer && last_trb_on_last_seg(xhci, ring, ring->deq_seg, next)) {
157 ring->cycle_state = (ring->cycle_state ? 0 : 1); 157 ring->cycle_state = (ring->cycle_state ? 0 : 1);
158 if (!in_interrupt())
159 xhci_dbg(xhci, "Toggle cycle state for ring %p = %i\n",
160 ring,
161 (unsigned int) ring->cycle_state);
162 } 158 }
163 ring->deq_seg = ring->deq_seg->next; 159 ring->deq_seg = ring->deq_seg->next;
164 ring->dequeue = ring->deq_seg->trbs; 160 ring->dequeue = ring->deq_seg->trbs;
@@ -231,10 +227,6 @@ static void inc_enq(struct xhci_hcd *xhci, struct xhci_ring *ring,
231 /* Toggle the cycle bit after the last ring segment. */ 227 /* Toggle the cycle bit after the last ring segment. */
232 if (last_trb_on_last_seg(xhci, ring, ring->enq_seg, next)) { 228 if (last_trb_on_last_seg(xhci, ring, ring->enq_seg, next)) {
233 ring->cycle_state = (ring->cycle_state ? 0 : 1); 229 ring->cycle_state = (ring->cycle_state ? 0 : 1);
234 if (!in_interrupt())
235 xhci_dbg(xhci, "Toggle cycle state for ring %p = %i\n",
236 ring,
237 (unsigned int) ring->cycle_state);
238 } 230 }
239 } 231 }
240 ring->enq_seg = ring->enq_seg->next; 232 ring->enq_seg = ring->enq_seg->next;
@@ -2476,11 +2468,6 @@ static int prepare_ring(struct xhci_hcd *xhci, struct xhci_ring *ep_ring,
2476 /* Toggle the cycle bit after the last ring segment. */ 2468 /* Toggle the cycle bit after the last ring segment. */
2477 if (last_trb_on_last_seg(xhci, ring, ring->enq_seg, next)) { 2469 if (last_trb_on_last_seg(xhci, ring, ring->enq_seg, next)) {
2478 ring->cycle_state = (ring->cycle_state ? 0 : 1); 2470 ring->cycle_state = (ring->cycle_state ? 0 : 1);
2479 if (!in_interrupt()) {
2480 xhci_dbg(xhci, "queue_trb: Toggle cycle "
2481 "state for ring %p = %i\n",
2482 ring, (unsigned int)ring->cycle_state);
2483 }
2484 } 2471 }
2485 ring->enq_seg = ring->enq_seg->next; 2472 ring->enq_seg = ring->enq_seg->next;
2486 ring->enqueue = ring->enq_seg->trbs; 2473 ring->enqueue = ring->enq_seg->trbs;