Hi,

I have a KW-21CS SmartMedia/Compact Flash reader which identifies
itself as a "ScanLogic SSFDC-CF 0.74".  This device reports a SCSI
revision of 1 for all its devices, which is wrong according to the USB
storage specs.  The revision is fixed up in protocol.c, but it ends up
as SCSI revision 3 which messes up the LUN handling in other parts of
the kernel.  The following change fixes this problem for me, and I
think it belongs in the mainstream USB code too.

--- protocol.c~ Mon Jul 30 06:11:50 2001
+++ protocol.c  Sat Dec 29 19:24:10 2001
@@ -76,7 +76,7 @@
                data_ptr = (unsigned char *)srb->request_buffer;
 
        /* Change the SCSI revision number */
-       data_ptr[2] |= 0x2;
+        data_ptr[2] = (data_ptr[2] & ~7) | 2;
 }
 
 /***********************************************************************

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to