Title: [4055] trunk/drivers/usb/musb/musb_host.c: [#3778]
add NAK Timemout check in EP0 control transfer,
this maybe is a workaround to help some USB device enumerate on BF54x
- Revision
- 4055
- Author
- cooloney
- Date
- 2007-12-18 22:42:48 -0600 (Tue, 18 Dec 2007)
Log Message
[#3778] add NAK Timemout check in EP0 control transfer, this maybe is a workaround to help some USB device enumerate on BF54x
Diffstat
musb_host.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Modified Paths
Diff
Modified: trunk/drivers/usb/musb/musb_host.c (4054 => 4055)
--- trunk/drivers/usb/musb/musb_host.c 2007-12-18 07:39:37 UTC (rev 4054)
+++ trunk/drivers/usb/musb/musb_host.c 2007-12-19 04:42:48 UTC (rev 4055)
@@ -1108,7 +1108,7 @@
if (unlikely(!urb)) {
/* stop endpoint since we have no place for its data, this
* SHOULD NEVER HAPPEN! */
- ERR("no URB for end 0\n");
+ DBG(1, "no URB for end 0\n");
musb_writew(epio, MUSB_CSR0, MUSB_CSR0_FLUSHFIFO);
musb_writew(epio, MUSB_CSR0, MUSB_CSR0_FLUSHFIFO);
@@ -1835,6 +1835,9 @@
case USB_ENDPOINT_XFER_ISOC:
/* iso always uses log encoding */
break;
+ case USB_ENDPOINT_XFER_CONTROL:
+ interval = (USB_SPEED_HIGH == urb->dev->speed) ? 8 : 0;
+ break;
default:
/* REVISIT we actually want to use NAK limits, hinting to the
* transfer scheduling logic to try some other qh, e.g. try
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits