Hi, > Obviously this "disconnect or port reset" message is related to the > "EP1 OUT IRQ 0x28" line above. But why? It looks like another bug. > > I see you still haven't fixed the last three bytes in the bulk-out > transfer. Ok, i just fixed the last three bytes in the bulk-out transfer problem. Please see below for the log. Now the last three bytes are read correctly. After SCSI_WRITE_10 is received, the gadget driver prints "g_file_storage gadget: disconnect or port reset", it means USB reset interrupt is received by the UDC driver. I don't know why USB reset interrupt is triggered. [start_transfer] ffffffff ffffffff ept1 out queue len 0x200, buffer 0xc1298000 g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 f5 00 00 00 00 02 00 00 00 00 0a 2a 00000010: 00 00 00 00 01 00 00 01 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: WRITE(10); Dc=10, Do=512; Hc=10, Ho=512 [start_transfer] 43425355 f5 ept1 out queue len 0x200, buffer 0xc1298000 g_file_storage gadget: disconnect or port reset g_file_storage gadget: do_scsi_command unlink (ep1) pio kagen2_set_halt 1 0 g_file_storage gadget: bulk-out, length 0: g_file_storage gadget: bulk_out_complete --> 0, 0/512 g_file_storage gadget: reset config g_file_storage gadget: reset interface g_file_storage gadget: handle_exception g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 00 01 00 00 40 00 ..... Thanks, victor -- 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