[PATCH 001/001] USB MASS STORAGE: US_FL_IGNORE_RESIDUE needed for Aiptek MP3 Player

Previous thread: Gaming Interface by Dirk on Monday, January 8, 2007 - 4:39 am. (34 messages)

Next thread: Re: [BUG] 2.6.20-rc3-mm1: can not mount root: i386: sched_clock using init data tsc_disable fix by Tomasz Kvarsin on Monday, January 8, 2007 - 4:18 am. (2 messages)
From: Dylan Taft
Date: Monday, January 8, 2007 - 4:14 am

From: Dylan Taft <d13f00l@gmail.com>

Device will not work as a mass storage device without US_FL_IGNORE_RESIDUE.

Signed-off-by: Dylan Taft <
d13f00l@gmail.com>
---
I bought this mp3 player that takes SD cards here

http://www.aiptek.com/Merchant2/merchant.mvc?Screen=PROD&Product_Code=AX4&Cate...

I can provide the errors in dmesg, if necessary, but this flag was
determined as necessary by doing a quick google on the errors

that were shown in dmesg.
I've been sitting on this patch for a while.  Formally submitting
patches seems daunting. I hope I did this right.

This patch is against vanilla 2.6.19, although it should work fine for
any newer kernel.  Thanks!


--- ./drivers/usb/storage/unusual_devs.bak      2006-12-09 20:50:33.000000000
 -0500

+++ ./drivers/usb/storage/unusual
_devs.h        2007-01-07 22:17:13.000000000  -0500
@@ -1075,6 +1075,15 @@ UNUSUAL_DEV(  0x08bd, 0x1100, 0x0000, 0x
                US_SC_DEVICE, US_PR_DEVICE, NULL,
                 US_FL_SINGLE_LUN),

+/* Submitted by Dylan Taft <d13f00l@gmail.com>
+ * US_FL_IGNORE_RESIDUE Needed
+ */
+UNUSUAL_DEV(  0x08ca, 0x3103, 0x0100, 0x0100,
+                "AIPTEK",
+                "Aiptek USB Keychain MP3 Player",
+                US_SC_DEVICE, US_PR_DEVICE, NULL,
+                US_FL_IGNORE_RESIDUE),
+
 /* Entry needed for flags. Moreover, all devices with this ID use
  * bulk-only transport, but _some_ falsely report Control/Bulk instead.
  * One example is "Trumpion Digital Research MYMP3".
-

Previous thread: Gaming Interface by Dirk on Monday, January 8, 2007 - 4:39 am. (34 messages)

Next thread: Re: [BUG] 2.6.20-rc3-mm1: can not mount root: i386: sched_clock using init data tsc_disable fix by Tomasz Kvarsin on Monday, January 8, 2007 - 4:18 am. (2 messages)