提交 8835f665 编写于 作者: A Alan Stern 提交者: Greg K-H

[PATCH] USB: USB API documentation modification

In response to complaints about excessive latency in the uhci-hcd driver
I'm planning to convert it to a top-half/bottom-half design.  It turns out
that to do this, the USB API has to be modified slightly since the driver
will not be able to meet one of the guarantees in the current API.  This
patch changes some kerneldoc, specifying the weaker guarantee.
Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 0e498763
...@@ -420,12 +420,16 @@ int usb_submit_urb(struct urb *urb, int mem_flags) ...@@ -420,12 +420,16 @@ int usb_submit_urb(struct urb *urb, int mem_flags)
* *
* Host Controller Drivers (HCDs) place all the URBs for a particular * Host Controller Drivers (HCDs) place all the URBs for a particular
* endpoint in a queue. Normally the queue advances as the controller * endpoint in a queue. Normally the queue advances as the controller
* hardware processes each request. But when an URB terminates with any * hardware processes each request. But when an URB terminates with an
* fault (such as an error, or being unlinked) its queue stops, at least * error its queue stops, at least until that URB's completion routine
* until that URB's completion routine returns. It is guaranteed that * returns. It is guaranteed that the queue will not restart until all
* the queue will not restart until all its unlinked URBs have been fully * its unlinked URBs have been fully retired, with their completion
* retired, with their completion routines run, even if that's not until * routines run, even if that's not until some time after the original
* some time after the original completion handler returns. * completion handler returns. Normally the same behavior and guarantees
* apply when an URB terminates because it was unlinked; however if an
* URB is unlinked before the hardware has started to execute it, then
* its queue is not guaranteed to stop until all the preceding URBs have
* completed.
* *
* This means that USB device drivers can safely build deep queues for * This means that USB device drivers can safely build deep queues for
* large or complex transfers, and clean them up reliably after any sort * large or complex transfers, and clean them up reliably after any sort
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册