Loading drivers/usb/gadget/android.c +7 −0 Original line number Diff line number Diff line Loading @@ -174,6 +174,9 @@ struct android_dev { struct usb_composite_dev *cdev; struct device *dev; void (*setup_complete)(struct usb_ep *ep, struct usb_request *req); bool enabled; int disable_depth; struct mutex mutex; Loading Loading @@ -3166,6 +3169,9 @@ static int android_bind(struct usb_composite_dev *cdev) dev->cdev = cdev; /* Save the default handler */ dev->setup_complete = cdev->req->complete; /* * Start disconnected. Userspace will connect the gadget once * it is done configuring the functions. Loading Loading @@ -3245,6 +3251,7 @@ android_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *c) req->zero = 0; req->length = 0; req->complete = dev->setup_complete; gadget->ep0->driver_data = cdev; list_for_each_entry(conf, &dev->configs, list_item) Loading Loading
drivers/usb/gadget/android.c +7 −0 Original line number Diff line number Diff line Loading @@ -174,6 +174,9 @@ struct android_dev { struct usb_composite_dev *cdev; struct device *dev; void (*setup_complete)(struct usb_ep *ep, struct usb_request *req); bool enabled; int disable_depth; struct mutex mutex; Loading Loading @@ -3166,6 +3169,9 @@ static int android_bind(struct usb_composite_dev *cdev) dev->cdev = cdev; /* Save the default handler */ dev->setup_complete = cdev->req->complete; /* * Start disconnected. Userspace will connect the gadget once * it is done configuring the functions. Loading Loading @@ -3245,6 +3251,7 @@ android_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *c) req->zero = 0; req->length = 0; req->complete = dev->setup_complete; gadget->ep0->driver_data = cdev; list_for_each_entry(conf, &dev->configs, list_item) Loading