On Mon, 1 Dec 2003, David Brownell wrote: > > The CSW transfer returned 0 bytes, not 13. Another Genesyslogic bug? > > That one sounds somewhat familiar. Like "hardware terminated > write with ZLP" ... I wonder if maybe just re-reading the CSW > might show better results. "Device bug" does seem a plausible > explanation given the facts we've seen; ZLPs aren't supposed to > be used in such cases.
Here's a quick-and-dirty patch to re-read the CSW. Matthias, when you have a chance try it out with your EHCI controller and tell us what happens. Alan Stern ===== transport.c 1.112 vs edited ===== --- 1.112/drivers/usb/storage/transport.c Fri Sep 26 12:37:45 2003 +++ edited/drivers/usb/storage/transport.c Mon Dec 1 14:06:19 2003 @@ -985,7 +985,7 @@ bcs, US_BULK_CS_WRAP_LEN, NULL); /* did the attempt to read the CSW fail? */ - if (result == USB_STOR_XFER_STALLED) { + if (result == USB_STOR_XFER_STALLED || result == USB_STOR_XFER_SHORT) { /* get the status again */ US_DEBUGP("Attempting to get CSW (2nd try)...\n"); ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel