Re: Linux USB file storage gadget with new UDC

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

 



On Thu, 28 Mar 2013, victor yeo wrote:

> 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

This is the problem.  -75 is -EOVERFLOW; it means the host received a
packet that was larger than expected.  Since the maxpacket value for a
bulk-in endpoint is 512, your UDC must be sending bulk DATA packets
with more than 512 bytes.

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




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

  Powered by Linux