On Sat, 6 Dec 2003, matthias geissert wrote:

> Hello,
> 
> I applied the patch. Unfortunately, results are the same. The output of
> dmesg is attached.

All right.  Here's another try, which might not be any better.  See what 
happens with the patch below instead.

> BTW what does CSW mean? Can the speed of the USB controller be reduced?
> I know that this question sounds quite strange, but if the external case
> has problems with the speed of the host controller this could make it
> work (It's probably just a stupid idea). Or is it usefull to check
> kernel 2.4.19 again? Maybe, we could see some difference in the output
> of dmesg.

Changing the speed of the host controller might solve your problem, 
although the default settings are generally okay.  Try this out first, 
though, before doing anything else.

Alan Stern


--- 2.6/drivers/usb/storage/transport.c~        Fri Dec  5 13:30:53 2003
+++ 2.6/drivers/usb/storage/transport.c Sat Dec  6 17:03:20 2003
@@ -985,10 +985,17 @@
                                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");
+               result = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe,
+                               bcs, US_BULK_CS_WRAP_LEN, NULL);
+       }
+       if (result == USB_STOR_XFER_STALLED) {
+
+               /* get the status again */
+               US_DEBUGP("Attempting to get CSW (3rd try)...\n");
                result = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe,
                                bcs, US_BULK_CS_WRAP_LEN, NULL);
        }



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to