Re: DWC3 DEPEVT_STATUS_SHORT

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

 



(no top-posting, please

david preetham <preetham.david@xxxxxxxxx> writes:
>> > How device controller will know short packet or end of transfer apart
>> from
>> > checking req length and received length from host is there anything host
>> > informs this is short packet to device controller? Suppose there 2gb file
>> > is getting transfer from host to device. How host will make sure EOF or
>> > short transfer for complete 2gb file.
>>
>> Short packet is when a packet is smaller than wMaxPacketSize. Assuming
>> we're discussing bulk endpoints with a SS USB link, then wMaxPacketSize
>> will be 1024. If you have a file that's exactly 2GiB (2*1024*1024, or
>> 2^31), then you don't have a short packet. I'm assuming host would have
>> to send a ZLP to signify the end of the transfer.
>
> In case of ZLP is expected from host does device controller(DMA) has
> timeout value?
> With in this time ZLP is expected or USB device controller
> indefinitely waits for ZLP ? If timeout value is there how much time
> it will wait ?

no, there are timeouts.

-- 
balbi

Attachment: signature.asc
Description: PGP signature


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

  Powered by Linux