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
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html