On Fri, 15 Jul 2005, Li Yang-r58472 wrote: > Seems I didn't state the problem clearly. I agree that there is no > problem with the mass-storage gadget driver. But the problem becomes > how to deal with host's clear_feature request in device controller > driver. Do we need to check the queue in udc when doing set_halt() for > value equals either 0 or 1 as in omap_udc?
That must depend on the hardware capabilities of the OMAP's udc controller, concerning which I know nothing. However the driver does need to be able to clear the halt feature for bulk-in endpoints when data is already queued. Exactly how it does this is hardware-dependent. If that isn't feasible then the Gadget API needs an addition, some way for drivers to wait until the host has cleared an endpoint's halt. Alan Stern ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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