1
0
Fork 0

usb: gadget: udc: core: update usb_ep_queue() documentation

commit eaa358c779 upstream.

Mention that ->complete() should never be called from within
usb_ep_queue().

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
pull/10/head
Felipe Balbi 2018-03-26 13:14:46 +03:00 committed by Greg Kroah-Hartman
parent aea6c0b4ae
commit 7732495c59
1 changed files with 3 additions and 0 deletions

View File

@ -249,6 +249,9 @@ EXPORT_SYMBOL_GPL(usb_ep_free_request);
* arranges to poll once per interval, and the gadget driver usually will
* have queued some data to transfer at that time.
*
* Note that @req's ->complete() callback must never be called from
* within usb_ep_queue() as that can create deadlock situations.
*
* Returns zero, or a negative error code. Endpoints that are not enabled
* report errors; errors will also be
* reported when the usb peripheral is disconnected.