Loading drivers/usb/gadget/function/f_gsi.c +10 −7 Original line number Diff line number Diff line Loading @@ -2014,13 +2014,6 @@ static void gsi_ctrl_notify_resp_complete(struct usb_ep *ep, event->bNotificationType, req->status); /* FALLTHROUGH */ case 0: /* * handle multiple pending resp available * notifications by queuing same until we're done, * rest of the notification require queuing new * request. */ gsi_ctrl_send_notification(gsi); break; } } Loading Loading @@ -2115,6 +2108,14 @@ static void gsi_ctrl_reset_cmd_complete(struct usb_ep *ep, gsi_ctrl_send_cpkt_tomodem(gsi, req->buf, 0); } static void gsi_ctrl_send_response_complete(struct usb_ep *ep, struct usb_request *req) { struct f_gsi *gsi = req->context; gsi_ctrl_send_notification(gsi); } static int gsi_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) { Loading Loading @@ -2200,6 +2201,8 @@ gsi_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) memcpy(req->buf, cpkt->buf, value); gsi_ctrl_pkt_free(cpkt); req->complete = gsi_ctrl_send_response_complete; req->context = gsi; log_event_dbg("copied encap_resp %d bytes", value); break; Loading Loading
drivers/usb/gadget/function/f_gsi.c +10 −7 Original line number Diff line number Diff line Loading @@ -2014,13 +2014,6 @@ static void gsi_ctrl_notify_resp_complete(struct usb_ep *ep, event->bNotificationType, req->status); /* FALLTHROUGH */ case 0: /* * handle multiple pending resp available * notifications by queuing same until we're done, * rest of the notification require queuing new * request. */ gsi_ctrl_send_notification(gsi); break; } } Loading Loading @@ -2115,6 +2108,14 @@ static void gsi_ctrl_reset_cmd_complete(struct usb_ep *ep, gsi_ctrl_send_cpkt_tomodem(gsi, req->buf, 0); } static void gsi_ctrl_send_response_complete(struct usb_ep *ep, struct usb_request *req) { struct f_gsi *gsi = req->context; gsi_ctrl_send_notification(gsi); } static int gsi_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) { Loading Loading @@ -2200,6 +2201,8 @@ gsi_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) memcpy(req->buf, cpkt->buf, value); gsi_ctrl_pkt_free(cpkt); req->complete = gsi_ctrl_send_response_complete; req->context = gsi; log_event_dbg("copied encap_resp %d bytes", value); break; Loading