On Wed, 18 Aug 2004, Michael Geithe wrote:

> Hi Alan,
> 
> here are the system log from kernel 2.6.8.1-mm1.
> 
> Thanks

The patch given below, which has already been submitted to the usb-storage 
maintainer, ought to help.  It was written for the DiMAGE A2 camera but 
apparently the 7HI requires the same workaround.

Alan Stern


===== drivers/usb/storage/transport.c 1.144 vs edited =====
--- 1.144/drivers/usb/storage/transport.c       Tue Jul 20 19:30:37 2004
+++ edited/drivers/usb/storage/transport.c      Tue Aug  3 17:04:51 2004
@@ -913,6 +913,7 @@
        int result;
 
        /* issue the command */
+       us->iobuf[0] = 0;
        result = usb_stor_control_msg(us, us->recv_ctrl_pipe,
                                 US_BULK_GET_MAX_LUN, 
                                 USB_DIR_IN | USB_TYPE_CLASS | 
@@ -923,7 +924,7 @@
                  result, us->iobuf[0]);
 
        /* if we have a successful request, return the result */
-       if (result == 1)
+       if (result >= 0)
                return us->iobuf[0];
 
        /* 



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to