This patch is required to fix up the jumpshot driver, and to supress the 'unneeded entry' message for another device which uses the same VID/PID/rev for multiple different versions of the device.
Alan Stern cooked this patch up, originally.
Signed-off-by: Matthew Dharm <[EMAIL PROTECTED]>
Matt
===== drivers/usb/storage/jumpshot.c 1.34 vs edited =====
--- 1.34/drivers/usb/storage/jumpshot.c Wed May 19 13:42:23 2004
+++ edited/drivers/usb/storage/jumpshot.c Thu Jun 17 15:51:10 2004
@@ -471,7 +471,7 @@
// build the reply
//
- ((u32 *) ptr)[0] = cpu_to_be32(info->sectors);
+ ((u32 *) ptr)[0] = cpu_to_be32(info->sectors - 1);
((u32 *) ptr)[1] = cpu_to_be32(info->ssize);
usb_stor_set_xfer_buf(ptr, 8, srb);
===== drivers/usb/storage/unusual_devs.h 1.131 vs edited =====
--- 1.131/drivers/usb/storage/unusual_devs.h Tue Jun 1 08:46:58 2004
+++ edited/drivers/usb/storage/unusual_devs.h Thu Jun 17 15:57:07 2004
@@ -402,8 +402,8 @@
UNUSUAL_DEV( 0x05dc, 0x0001, 0x0000, 0x0001,
"Lexar",
"Jumpshot USB CF Reader",
- US_SC_DEVICE, US_PR_JUMPSHOT, NULL,
- US_FL_MODE_XLATE ),
+ US_SC_SCSI, US_PR_JUMPSHOT, NULL,
+ US_FL_NEED_OVERRIDE | US_FL_MODE_XLATE ),
#endif
/* Reported by Blake Matheny <[EMAIL PROTECTED]> */
--
Matthew Dharm Home: [EMAIL PROTECTED]
Maintainer, Linux USB Mass Storage Driver
E: You run this ship with Windows?! YOU IDIOT!
L: Give me a break, it came bundled with the computer!
-- ESR and Lan Solaris
User Friendly, 12/8/1998
pgpoiHrv5TVEz.pgp
Description: PGP signature
