On Mon, 25 Mar 2013, victor yeo wrote: > I do not know when to set the Halt feature for the bulk-in endpoint. I > see gadget code have this line printed out: > g_file_storage gadget: bulk-in set halt The UDC driver is supposed to set the Halt feature when the set_halt() routine in the usb_ep_ops table is called with a nonzero second argument. Also when the set_wedge() routine is called -- the difference is that with set_wedge(), the driver should ignore Clear-Halt requests from the host. All of this material is documented in include/linus/usb/gadget.h. Why don't you read that file? > In the log file, is there any invalid request received on endpoint 0? In the usbmon file there is. It is this line: > f4ae6f40 1217192721 S Co:2:018:0 s 21 ff 0000 0000 0000 0 Alan Stern -- 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