On Thu, 18 Apr 2013, victor yeo wrote: > I modified the UDC driver to send out zero length data packet. Now the > linux host is able to see the USB gadget as a mass storage device and > read from USB gadget. However, writing to USB gadget fails. The > SCSI_WRITE_10 command often receives (-104). The usbmon trace showing > this failure is attached. Is the bulk-out endpoint unable to receive > command and data continuously, due to error in UDC driver? It looks like the data gets received okay. I can't tell what's going wrong because you did not post the gadget log showing the WRITE commands. > Also, as in UDC driver log, sometimes the same SCSI_READ_10 command is > received repeatedly. It is strange behavior. This could be the same probably I told you about earlier: The UDC driver calls bulk_out_complete() even though no packets were received. 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