Re: Linux USB file storage gadget with new UDC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

>> Here is the gadget log when receiving SCSI_READ_10 from Linux host.
>>
>> g_file_storage gadget: bulk-out, length 31:
>> 00000000: 55 53 42 43 0f 00 00 00 00 10 00 00 80 00 0a 28
>> 00000010: 00 00 00 00 00 00 00 08 00 00 00 00 e0 f8 02
>> SCSI CDB: 28 00 00 00 00 00 00 00 08 00
>> g_file_storage gadget: SCSI command: READ(10);  Dc=10, Di=4096;  Hc=10, Hi=4096
>> <.... driver read from SD card .....>
>> g_file_storage gadget-lun0: file read 4096 @ 0 -> 4096
>> READ_10 reply -5                           *** printk added by me***
>> g_file_storage gadget: bulk-in, length 13:
>> 00000000: 55 53 42 53 0f 00 00 00 00 00 00 00 00
>
> This all looks right.

There is a problem with SCSI_READ_10 command if looking at usbmon. I
pasted the usbmon log that starts from SCSI_READ_10. Basically, the
SCSI_READ_10 was received by gadget, processed, sent CSW, followed by
control packets. Then another SCSI_READ_10, sent CSW, followed by
control packets. Then another SCSI_READ_10, but CSW is not received by
host.

There must be problems in the UDC driver. CSW is sent by the UDC
driver but it is not received by the Linux host.

Thanks,
victor

f59e13c0 3246885432 S Bo:2:046:1 -115 31 = 55534243 0c000000 00100000
80000a28 00000000 00000008 00000000 000000
f59e13c0 3246885582 C Bo:2:046:1 0 31 >
f59e15c0 3246885594 S Bi:2:046:1 -115 4096 <
f59e15c0 3247150217 C Bi:2:046:1 -75 0
f59e13c0 3247150291 S Bi:2:046:1 -115 13 <
f59e13c0 3247150450 C Bi:2:046:1 -75 0
f412a840 3247310347 S Ci:2:046:0 s 80 06 0100 0000 0012 18 <
f412a840 3247313216 C Ci:2:046:0 0 18 = 12010002 00000040 2505a5a4 33030102 0001
f412a840 3247313226 S Ci:2:046:0 s 80 06 0200 0000 0020 32 <
f412a840 3247326452 C Ci:2:046:0 0 32 = 09022000 010104c0 01090400
00020806 50050705 81020002 00070501 02000201
f412a840 3247326511 S Co:2:046:0 s 00 09 0001 0000 0000 0
f412a840 3247339340 C Co:2:046:0 0 0
f59e13c0 3247345346 S Bo:2:046:1 -115 31 = 55534243 0d000000 00100000
80000a28 00000000 00000008 00000000 000000
f59e13c0 3247345450 C Bo:2:046:1 0 31 >
f59e15c0 3247345461 S Bi:2:046:1 -115 4096 <
f59e15c0 3247352463 C Bi:2:046:1 -75 0
f59e13c0 3247352476 S Bi:2:046:1 -115 13 <
f59e13c0 3247352712 C Bi:2:046:1 0 0
f59e13c0 3247352720 S Bi:2:046:1 -115 13 <
f59e13c0 3247359080 C Bi:2:046:1 0 13 = 55534253 0c000000 00000000 00
f412a840 3247529347 S Ci:2:046:0 s 80 06 0100 0000 0012 18 <
f412a840 3247530463 C Ci:2:046:0 0 18 = 12010002 00000040 2505a5a4 33030102 0001
f412a840 3247530476 S Ci:2:046:0 s 80 06 0200 0000 0020 32 <
f412a840 3247543866 C Ci:2:046:0 0 32 = 09022000 010104c0 01090400
00020806 50050705 81020002 00070501 02000201
f412a840 3247543906 S Co:2:046:0 s 00 09 0001 0000 0000 0
f412a840 3247556713 C Co:2:046:0 0 0
f59e13c0 3247562349 S Bo:2:046:1 -115 31 = 55534243 0e000000 00100000
80000a28 00000000 00000008 00000000 000000
f59e13c0 3247562449 C Bo:2:046:1 0 31 >
f59e15c0 3247562460 S Bi:2:046:1 -115 4096 <
f59e15c0 3278472491 C Bi:2:046:1 -104 0
--
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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux