Re: [PATCH] usb/g_zero: don't access private data in complete callback on error

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

 



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.


Alan Stern

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux