On Thu, 17 Nov 2005, Eyes Blue wrote: > Linux distributions : Fedora Core4 > Kernel : 2.6.11-1.1369_FC4.rootsmp > Platform : x86 compatable > > Hi there. > We have a device which two function in a same endpoint > actuality. one of > the function is mass storage device, another is a > linely sensor. The > hardware designer used the different command for each > function in the same > endpoint. > > My question is attach the device to usb hub, the usb > core will choose the > mass storage device driver to drive the device. I have > to develop a driver > for the linely sensor. But it always catch by mass > storage driver. Is > the linely sensor can be develop? > > please suggest me.
Your device is designed badly. Two functions should not share an endpoint. Instead the device should have two different interfaces and they should use different endpoints. You should tell the hardware designer that he made a mistake. There is already a Linux driver for another badly-designed USB mass storage device: the Maxtor OneTouch disk drive. It's in the 2.6.14 kernel. Maybe you can use it as a model. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
