Hi,

Alan Stern <st...@rowland.harvard.edu> writes:
>> Also, does the gadget subsystem guarantee, that we get the complete()
>> callback for the DATA stage of the OUT control request before we get a
>> setup() callback for the next control request if there's any?
>
> As I recall, this isn't mentioned in the documentation.  But the UDC
> drivers I know of do behave that way, and it's reasonable to assume
> they all do.
>
> After all, a data-stage transfer can't complete _after_ the next Setup
> packet arrives.  Reception of a new Setup packet invalidates all
> ongoing control transfers.

Considering that the gadget API handles one stage at a time, it would be
impossible for this to not be the case :-)

UDCs start a trasnfer only for the setup phase, then process the
control request to decide what to do next.

-- 
balbi

Attachment: signature.asc
Description: PGP signature

Reply via email to