>> >Does this device work correctly under Windows? If so, how? >> >> It works correctly on Windows Vista. >> The device is seen as a single usb component but it displays four separate >> disks on "my computer", even when no card is inserted in (just like a CD >> reader). > >The point of my question is: How does Windows know there are four LUNs? I'd like to understand that, too. Googling around I discovered a "Realtek RTS5101/RTS5111/RTS5116 Card Reader driver" for windows containing a rtusbstor.inf that covers my model (0bda:0152) and others from the same family. Such as: % U S B \ V I D _ 0 B D A & P I D _ 0 1 1 8 . D e v i c e D e s c % = R T U S B S T O R , U S B \ V I D _ 0 B D A & P I D _ 0 1 1 8 % U S B \ V I D _ 0 B D A & P I D _ 0 1 5 1 . D e v i c e D e s c % = R T U S B S T O R , U S B \ V I D _ 0 B D A & P I D _ 0 1 5 1 % U S B \ V I D _ 0 B D A & P I D _ 0 1 5 2 . D e v i c e D e s c % = R T U S B S T O R , U S B \ V I D _ 0 B D A & P I D _ 0 1 5 2 & M I _ 0 0 % U S B \ V I D _ 0 B D A & P I D _ 0 1 5 3 . D e v i c e D e s c % = R T U S B S T O R , U S B \ V I D _ 0 B D A & P I D _ 0 1 5 3 ... However, in my setup of windows vista the device is handled by usbstor.sys (and works correctly) and there's no rtusbstor.sys, so I'd assume that the standard usbstor.sys already includes the support required for these devices. I'll gladly provide more information, if you can tell me where to look. I also noticed that my model is a composite device (on windows, it uses MI_00 for the card reader and MI_01 for a hid). This can be seen in linux as well, in my /proc/bus/usb/devices . Looking at the first post in this thread http://ubuntu-virginia.ubuntuforums.org/showthread.php?p=7452052 it can be seen that the model 0bda:0151 correctly detects all of the four slots without my patch. >From the rtusbstor.inf I discovered that 0bda:0152 (my model, which really deserves the "unusual" adjective) is the only card reader model among those which is also a composite usb device. This might be a clue to understand why it doesn't work out of the box like the others. Just wondering... could be that GetMaxLun is failing due to the fact that this is a composite device where one interface is multi-lun and the other is not? (yes, I've seen that the multi-lun check is made separatedly for each interface, so I'd blame the device) Giacomo Lozito -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html