On Wed, Aug 27 2014, Michal Sojka wrote: > All USB peripheral controller drivers called completion routines > directly. This patch moves the completion call from drivers to > usb_gadget_giveback_request(), in order to have a place where common > functionality can be added. > > 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. [...] > diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c > index b0d9817..2eb0ae4 100644 > --- a/drivers/usb/gadget/udc/udc-core.c > +++ b/drivers/usb/gadget/udc/udc-core.c > @@ -102,6 +102,15 @@ void usb_gadget_unmap_request(struct usb_gadget *gadget, > } > EXPORT_SYMBOL_GPL(usb_gadget_unmap_request); > > +void usb_gadget_giveback_request(struct usb_ep *ep, > + struct usb_request *req) > +{ > + /* complete() is from gadget layer, > + * eg fsg->bulk_in_complete() */ > + if (req->complete) > + req->complete(ep, req); > +} > +EXPORT_SYMBOL_GPL(usb_gadget_giveback_request); > #endif /* CONFIG_HAS_DMA */ #endif should be before usb_gadget_giveback_request(). I'll fix this in v4. -Michal -- 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