* XHCI: Question regarding process_ctrl_td()
@ 2013-09-30 23:26 hemantk
0 siblings, 0 replies; only message in thread
From: hemantk @ 2013-09-30 23:26 UTC (permalink / raw)
To: linux-usb; +Cc: linux-arm-msm, sarah.a.sharp
Hi
I have question regarding code snippet in process_ctrl_td()
if (event_trb == td->last_trb) {
if (td->urb->actual_length != 0) {
/* Don't overwrite a previously set error code
*/
if ((*status == -EINPROGRESS || *status == 0) &&
(td->urb->transfer_flags
& URB_SHORT_NOT_OK))
/* Did we already see a short data
* stage? */
*status = -EREMOTEIO;
} else {
>>>> td->urb->actual_length =
td->urb->transfer_buffer_length;
}
}
For status stage of a control transfer what is the reason for overwriting
the actual_length with transfer_buffer_length in case if actual_length is
zero(highlighted with >>>>)?
Thanks,
Hemant
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-30 23:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-30 23:26 XHCI: Question regarding process_ctrl_td() hemantk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).