[PATCH] get CliƩ to work with 2.6.1
Stephen Hemminger <[email protected]> Tue, 20 Jan 2004 15:20:20 -0800
| Newsgroups | gmane.linux.usb.devel,gmane.comp.handhelds.clie.linux |
|---|---|
| Organization | Open Source Development Lab |
| Message-ID | <[email protected]> |
My Sony Cli=E9 SJ33 can not attach the memory card unless the following pat=
ch is added
to 2.6.1. The problem is that the PDA does not follow the storage spec's a=
nd the
code was being too picky.
I sent the same patch in before but it didn't make it in.
diff -urN -X /home/shemminger/osdlab/dontdiff linux-2.5/drivers/usb/storage=
/transport.c desktop-2.5/drivers/usb/storage/transport.c
--- linux-2.5/drivers/usb/storage/transport.c 2004-01-16 15:18:45.000000000=
-0800
+++ desktop-2.5/drivers/usb/storage/transport.c 2004-01-20 14:25:58.0000000=
00 -0800
@@ -819,6 +819,8 @@
return USB_STOR_TRANSPORT_GOOD;
}
=20
+#if 0
+ /* Removed because some devices do not follow the spec. */
/* If not UFI, we interpret the data as a result code=20
* The first byte should always be a 0x0
* The second byte & 0x0F should be 0x0 for good, otherwise error=20
@@ -828,6 +830,7 @@
us->iobuf[0]);
return USB_STOR_TRANSPORT_ERROR;
}
+#endif
=20
switch (us->iobuf[1] & 0x0F) {
case 0x00:=20
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel