On Mon, 8 Mar 2004, David Brownell wrote: > Alan Stern wrote: > > I'm thinking of a dual-speed device where the gadget driver wants to > > allocate endpoints for a full-speed configuration. The way it is now, the > > driver will have to go through and manually change the wMaxPacketSize > > values from 512 to 64. > > Given two different endpoint descriptors, drivers can just copy > bEndpointAddress from full speed to high speed and initializes > highspeed wMaxPacketSize to le16(512) to start with.
Will that work in a composite gadget? What if some functions only support one speed, so that different sets of endpoints get allocated for the different speed configs? Wouldn't it be easier for a dual-speed function driver simply to have two endpoint descriptors, passing one of them to usb_ep_autoconfig() when intializing the full-speed configuration and passing the other when intitializing the high-speed config? I would be happy if the function driver merely had to initialize the descriptors' maxpacket values to 64 and 512 respectively, relying on autoconfig to adjust them appropriately. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
