Hi USB-developers,

I recognized that in unusual_devs.h of kernel 2.6.11.7 a lot of ProductIDs
for different iPod models (mini & photo) are missing, which all need the US_FL_FIX_CAPACITY flag. Furthermore I noticed, that with the last firmware update of the iPod Photo (1.1) the bcdDevice changed, which resulted in the iPod not being recognized anymore, so I set the range to 0x0000-0xffff. This is not a problem I think, as the entry is anyway only for the US_FL_FIX_CAPACITY flag.


Patch and /proc/bus/usb/devices attached.

Signed-off-by: Sven Anderson <[EMAIL PROTECTED]>

Cheers,

Sven

--
sven anderson               "Falls Sie glauben, dass Technologie Ihre
http://sven.anderson.de     Sicherheitsprobleme lösen kann, verstehen
tel:    +49-551-9969285     Sie die Probleme nicht, und Sie haben von
mobile: +49-179-4939223     Technologie keine Ahnung."  (B. Schneier)

--- linux-2.6.11.7/drivers/usb/storage/unusual_devs.h.orig      2005-04-08 
15:51:50.211457304 +0200
+++ linux-2.6.11.7/drivers/usb/storage/unusual_devs.h   2005-04-08 
17:03:33.153310712 +0200
@@ -490,8 +490,32 @@ UNUSUAL_DEV(  0x05ab, 0x5701, 0x0100, 0x
                0 ),
 #endif
 
-/* Reported by Avi Kivity <[EMAIL PROTECTED]> */
-UNUSUAL_DEV( 0x05ac, 0x1203, 0x0001, 0x0001,
+/* Submitted by Sven Anderson <[EMAIL PROTECTED]> 
+ * Based on patch by Avi Kivity <[EMAIL PROTECTED]>
+ * There are at least four ProductIDs used for iPods. They just need the
+ * US_FL_FIX_CAPACITY. As the bcdDevice appears to change with firmware
+ * updates, the range is set to maximum.
+ */
+ 
+UNUSUAL_DEV( 0x05ac, 0x1202, 0x0000, 0xffff,
+               "Apple",
+               "iPod",
+               US_SC_DEVICE, US_PR_DEVICE, NULL,
+               US_FL_FIX_CAPACITY ),
+
+UNUSUAL_DEV( 0x05ac, 0x1203, 0x0000, 0xffff,
+               "Apple",
+               "iPod",
+               US_SC_DEVICE, US_PR_DEVICE, NULL,
+               US_FL_FIX_CAPACITY ),
+
+UNUSUAL_DEV( 0x05ac, 0x1204, 0x0000, 0xffff,
+               "Apple",
+               "iPod",
+               US_SC_DEVICE, US_PR_DEVICE, NULL,
+               US_FL_FIX_CAPACITY ),
+
+UNUSUAL_DEV( 0x05ac, 0x1205, 0x0000, 0xffff,
                "Apple",
                "iPod",
                US_SC_DEVICE, US_PR_DEVICE, NULL,


T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-24.14-default uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:07.3
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  7 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=05ac ProdID=1204 Rev= 0.02
S:  Manufacturer=Apple
S:  Product=iPod
S:  SerialNumber=000000DD2EC9
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-24.14-default uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:07.2
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms


Reply via email to