summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/drivers/usb/host/ehci-q.c
diff options
context:
space:
mode:
Diffstat (limited to 'ANDROID_3.4.5/drivers/usb/host/ehci-q.c')
-rw-r--r--ANDROID_3.4.5/drivers/usb/host/ehci-q.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ANDROID_3.4.5/drivers/usb/host/ehci-q.c b/ANDROID_3.4.5/drivers/usb/host/ehci-q.c
index 36ca5077..9e11e38a 100644
--- a/ANDROID_3.4.5/drivers/usb/host/ehci-q.c
+++ b/ANDROID_3.4.5/drivers/usb/host/ehci-q.c
@@ -286,7 +286,12 @@ __acquires(ehci->lock)
status,
urb->actual_length, urb->transfer_buffer_length);
#endif
-
+ /*{CharlesTu, 2008.12.26, for test mode */
+#ifdef CONFIG_USB_EHCI_EHSET
+ if (likely(urb->transfer_flags == URB_HCD_DRIVER_TEST))
+ return;
+#endif
+ /*CharlesTu}*/
/* complete() can reenter this HCD */
usb_hcd_unlink_urb_from_ep(ehci_to_hcd(ehci), urb);
spin_unlock (&ehci->lock);