The MusicDrive chip (used in some USB flash drive MP3 players) incorrectly reports residues on large (64k) data transfers. This patch adds an UNUSUAL_DEV entry for the device to make the Linux transport code ignore the residue count on reads from the device. Writes to the device will still fail and result in corrupted data on the flash drive.
Signed-off-by: Joris van Rantwijk <[EMAIL PROTECTED]> diff -urN -U 5 linux-2.6.9/drivers/usb/storage/unusual_devs.h linux-2.6.9-joris/drivers/usb/storage/unusual_devs.h --- linux-2.6.9/drivers/usb/storage/unusual_devs.h 2004-09-26 12:02:56.000000000 +0200 +++ linux-2.6.9-joris/drivers/usb/storage/unusual_devs.h 2004-09-26 12:14:02.000000000 +0200 @@ -856,5 +856,13 @@ "Sandisk", "ImageMate SDDR55", US_SC_SCSI, US_PR_SDDR55, NULL, US_FL_SINGLE_LUN), #endif + +/* Reported by Joris van Rantwijk <[EMAIL PROTECTED]> */ +UNUSUAL_DEV( 0x03eb, 0x2002, 0x0100, 0x0100, + "Atmel Corp.", + "MusicDrive", + US_SC_DEVICE, US_PR_DEVICE, NULL, + US_FL_IGNORE_RESIDUE ), + ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel