I tested this patch under kernel 2.6.8.1 and it works :)
Alan Stern wrote:
On Wed, 18 Aug 2004, Darsen wrote:
Thanks, that did help a lot !!
I read the usb-storage code and found a fix_read_capacity() function.
It seems that someone else has the same problem!
I modified line 226 in protocol.c, and my USB drive worked perfectly.
/* Fix the READ CAPACITY result if necessary */
- if (us->flags & US_FL_FIX_CAPACITY)
+ //if (us->flags & US_FL_FIX_CAPACITY)
fix_read_capacity(srb);
Okay. The correct way to fix this is to uncomment that line back, and
apply the patch below. I will submit it for inclusion in the kernel.
Alan Stern
===== drivers/usb/storage/unusual_devs.h 1.144 vs edited =====
--- 1.144/drivers/usb/storage/unusual_devs.h Fri Aug 6 03:59:29 2004
+++ edited/drivers/usb/storage/unusual_devs.h Wed Aug 18 11:27:19 2004
@@ -490,6 +490,13 @@
US_FL_SINGLE_LUN ),
#endif
+/* Reported by Darsen Lu <[EMAIL PROTECTED]> */
+UNUSUAL_DEV( 0x066f, 0x8000, 0x0001, 0x0001,
+ "SigmaTel",
+ "USBMSC Audio Player",
+ US_SC_DEVICE, US_PR_DEVICE, NULL,
+ US_FL_FIX_CAPACITY ),
+
/* Submitted by Benny Sjostrand <[EMAIL PROTECTED]> */
UNUSUAL_DEV( 0x0686, 0x4011, 0x0001, 0x0001,
"Minolta",
-------------------------------------------------------
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-users
-------------------------------------------------------
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-users