On Sat, 24 Dec 2005, jinzhucheng wrote: > We know HI-speed usb peripheral controller(ISP1581.net2280...) supports > operation with either a full-speed or high-speed host and they have > ability to switch between Full-Speed and High-Speed > terminations/signaling. > but in gadget driver(fsg, serial, ether...), when we define endpoint > descriptor, we will set maxpacketsize is 512 for this hi-speed > controller. so when device connect to full-speed host, it will work > failed, is it right or not? thank you!
I can answer this question. Gadget drivers define _two_ sets of endpoint, interface, and configuration descriptors. One set gets used when operating at high speed, with maxpacket = 512. The other set gets used when operating at full speed, with maxpacket = 64. Look at the source code for those drivers and you will see both sets of descriptors. Alan Stern ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel