aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndiry Xu <andiry.xu@amd.com>2010-07-22 18:23:15 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 17:35:41 -0400
commit7fec3253edeb62ab7fc1a82d246196e72e9afdac (patch)
treea7d13485312ef8339eea87cd7f6c228e110f6cdc /drivers
parent22405ed2e1bd8d2676cb45c578bdd05527ce25b9 (diff)
USB: xHCI: remove redundant print messages
Remove redundant print messages in the interrupt context. Signed-off-by: Andiry Xu <andiry.xu@amd.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/xhci-ring.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 83580cf794d1..44730eca5fd9 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -1592,7 +1592,6 @@ static int handle_tx_event(struct xhci_hcd *xhci,
1592 u32 trb_comp_code; 1592 u32 trb_comp_code;
1593 int ret = 0; 1593 int ret = 0;
1594 1594
1595 xhci_dbg(xhci, "In %s\n", __func__);
1596 slot_id = TRB_TO_SLOT_ID(event->flags); 1595 slot_id = TRB_TO_SLOT_ID(event->flags);
1597 xdev = xhci->devs[slot_id]; 1596 xdev = xhci->devs[slot_id];
1598 if (!xdev) { 1597 if (!xdev) {
@@ -1614,7 +1613,6 @@ static int handle_tx_event(struct xhci_hcd *xhci,
1614 1613
1615 event_dma = event->buffer; 1614 event_dma = event->buffer;
1616 /* This TRB should be in the TD at the head of this ring's TD list */ 1615 /* This TRB should be in the TD at the head of this ring's TD list */
1617 xhci_dbg(xhci, "%s - checking for list empty\n", __func__);
1618 if (list_empty(&ep_ring->td_list)) { 1616 if (list_empty(&ep_ring->td_list)) {
1619 xhci_warn(xhci, "WARN Event TRB for slot %d ep %d with no TDs queued?\n", 1617 xhci_warn(xhci, "WARN Event TRB for slot %d ep %d with no TDs queued?\n",
1620 TRB_TO_SLOT_ID(event->flags), ep_index); 1618 TRB_TO_SLOT_ID(event->flags), ep_index);
@@ -1623,30 +1621,17 @@ static int handle_tx_event(struct xhci_hcd *xhci,
1623 xhci_print_trb_offsets(xhci, (union xhci_trb *) event); 1621 xhci_print_trb_offsets(xhci, (union xhci_trb *) event);
1624 goto cleanup; 1622 goto cleanup;
1625 } 1623 }
1626 xhci_dbg(xhci, "%s - getting list entry\n", __func__);
1627 td = list_entry(ep_ring->td_list.next, struct xhci_td, td_list); 1624 td = list_entry(ep_ring->td_list.next, struct xhci_td, td_list);
1628 1625
1629 /* Is this a TRB in the currently executing TD? */ 1626 /* Is this a TRB in the currently executing TD? */
1630 xhci_dbg(xhci, "%s - looking for TD\n", __func__);
1631 event_seg = trb_in_td(ep_ring->deq_seg, ep_ring->dequeue, 1627 event_seg = trb_in_td(ep_ring->deq_seg, ep_ring->dequeue,
1632 td->last_trb, event_dma); 1628 td->last_trb, event_dma);
1633 xhci_dbg(xhci, "%s - found event_seg = %p\n", __func__, event_seg);
1634 if (!event_seg) { 1629 if (!event_seg) {
1635 /* HC is busted, give up! */ 1630 /* HC is busted, give up! */
1636 xhci_err(xhci, "ERROR Transfer event TRB DMA ptr not part of current TD\n"); 1631 xhci_err(xhci, "ERROR Transfer event TRB DMA ptr not part of current TD\n");
1637 return -ESHUTDOWN; 1632 return -ESHUTDOWN;
1638 } 1633 }
1639 event_trb = &event_seg->trbs[(event_dma - event_seg->dma) / sizeof(*event_trb)]; 1634 event_trb = &event_seg->trbs[(event_dma - event_seg->dma) / sizeof(*event_trb)];
1640 xhci_dbg(xhci, "Event TRB with TRB type ID %u\n",
1641 (unsigned int) (event->flags & TRB_TYPE_BITMASK)>>10);
1642 xhci_dbg(xhci, "Offset 0x00 (buffer lo) = 0x%x\n",
1643 lower_32_bits(event->buffer));
1644 xhci_dbg(xhci, "Offset 0x04 (buffer hi) = 0x%x\n",
1645 upper_32_bits(event->buffer));
1646 xhci_dbg(xhci, "Offset 0x08 (transfer length) = 0x%x\n",
1647 (unsigned int) event->transfer_len);
1648 xhci_dbg(xhci, "Offset 0x0C (flags) = 0x%x\n",
1649 (unsigned int) event->flags);
1650 1635
1651 /* Look for common error cases */ 1636 /* Look for common error cases */
1652 trb_comp_code = GET_COMP_CODE(event->transfer_len); 1637 trb_comp_code = GET_COMP_CODE(event->transfer_len);