On Tue, Jan 24, 2012 at 08:52:48AM +0100, Sebastian Andrzej Siewior wrote: > On 01/24/2012 04:03 AM, Alan Stern wrote: > >On Mon, 23 Jan 2012, Paul Zimmerman wrote: > >>You don't need to wait for the hardware to complete the transfer. You > >>just need to be sure the completion callbacks are called with an > >>appropriate error code before usb_ep_disable() returns. You can arrange > >>for the DWC3 driver to handle the hardware completions later when/if > >>they happen. > > > >But you do need to wait until the hardware has finished accessing the > >data buffers. > > Exactly. We have to wait until the hardware released the data buffer > it has been assigned. After you issue ENDTRANSFER command, the fact that CMDACT gets cleared means that HW has completed the command, no ? -- balbi
Attachment:
signature.asc
Description: Digital signature