usb: gadget: Refactor request completion
Use the recently introduced usb_gadget_giveback_request() in favor of direct invocation of the completion routine. All places in drivers/usb/ matching "[-.]complete(" were replaced with a call to usb_gadget_giveback_request(). This was compile-tested with all ARM drivers enabled and runtime-tested for musb. Signed-off-by: Michal Sojka <sojka@merica.cz> Acked-by: Felipe Balbi <balbi@ti.com> Tested-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

父節點
3fc2aa5522
當前提交
304f7e5e1d
@@ -176,7 +176,7 @@ __acquires(ep->musb->lock)
|
||||
ep->end_point.name, request,
|
||||
req->request.actual, req->request.length,
|
||||
request->status);
|
||||
req->request.complete(&req->ep->end_point, &req->request);
|
||||
usb_gadget_giveback_request(&req->ep->end_point, &req->request);
|
||||
spin_lock(&musb->lock);
|
||||
ep->busy = busy;
|
||||
}
|
||||
|
Reference in New Issue
Block a user