patch-2.4.25 linux-2.4.25/drivers/usb/host/ehci-q.c
Next file: linux-2.4.25/drivers/usb/host/ehci-sched.c
Previous file: linux-2.4.25/drivers/usb/host/ehci-mem.c
Back to the patch index
Back to the overall index
- Lines: 55
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/usb/host/ehci-q.c
- Orig date:
2003-11-28 10:26:20.000000000 -0800
diff -urN linux-2.4.24/drivers/usb/host/ehci-q.c linux-2.4.25/drivers/usb/host/ehci-q.c
@@ -225,6 +225,16 @@
}
spin_unlock (&urb->lock);
+#ifdef EHCI_URB_TRACE
+ ehci_dbg (ehci,
+ "%s %s urb %p ep%d%s status %d len %d/%d\n",
+ __FUNCTION__, urb->dev->devpath, urb,
+ usb_pipeendpoint (urb->pipe),
+ usb_pipein (urb->pipe) ? "in" : "out",
+ urb->status,
+ urb->actual_length, urb->transfer_buffer_length);
+#endif
+
/* complete() can reenter this HCD */
spin_unlock (&ehci->lock);
usb_hcd_giveback_urb (&ehci->hcd, urb, regs);
@@ -673,6 +683,10 @@
qh->period = urb->interval;
}
+
+ /* support for tt scheduling */
+ // qh->dev = usb_get_dev (urb->dev);
+ qh->dev = urb->dev;
}
/* using TT? */
@@ -732,8 +746,6 @@
usb_settoggle (urb->dev, usb_pipeendpoint (urb->pipe), !is_input, 1);
return qh;
}
-#undef hb_mult
-#undef hb_packet
/*-------------------------------------------------------------------------*/
@@ -929,10 +941,14 @@
if (usb_pipein (urb->pipe) && !usb_pipecontrol (urb->pipe))
epnum |= 0x10;
- ehci_vdbg (ehci, "submit_async urb %p len %d ep%d%s qtd %p [qh %p]\n",
- urb, urb->transfer_buffer_length,
- epnum & 0x0f, (epnum & 0x10) ? "in" : "out",
+#ifdef EHCI_URB_TRACE
+ ehci_dbg (ehci,
+ "%s %s urb %p ep%d%s len %d, qtd %p [qh %p]\n",
+ __FUNCTION__, urb->dev->devpath, urb,
+ epnum & 0x0f, usb_pipein (urb->pipe) ? "in" : "out",
+ urb->transfer_buffer_length,
qtd, dev ? dev->ep [epnum] : (void *)~0);
+#endif
spin_lock_irqsave (&ehci->lock, flags);
qh = qh_append_tds (ehci, urb, qtd_list, epnum, &dev->ep [epnum]);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)