Loading drivers/usb/gadget/function/f_mbim.c +14 −2 Original line number Diff line number Diff line /* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2016,2017 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -768,7 +768,6 @@ static void mbim_notify_complete(struct usb_ep *ep, struct usb_request *req) break; } mbim_do_notify(mbim); spin_unlock(&mbim->lock); pr_debug("dev:%pK Exit\n", mbim); Loading Loading @@ -878,6 +877,17 @@ fmbim_cmd_complete(struct usb_ep *ep, struct usb_request *req) return; } static void mbim_response_complete(struct usb_ep *ep, struct usb_request *req) { struct f_mbim *mbim = req->context; pr_debug("%s: queue notify request if any new response available\n" , __func__); spin_lock(&mbim->lock); mbim_do_notify(mbim); spin_unlock(&mbim->lock); } static int mbim_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) { Loading Loading @@ -957,6 +967,8 @@ mbim_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) pr_debug("copied encapsulated_response %d bytes\n", value); req->complete = mbim_response_complete; req->context = mbim; break; case ((USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8) Loading Loading
drivers/usb/gadget/function/f_mbim.c +14 −2 Original line number Diff line number Diff line /* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2016,2017 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -768,7 +768,6 @@ static void mbim_notify_complete(struct usb_ep *ep, struct usb_request *req) break; } mbim_do_notify(mbim); spin_unlock(&mbim->lock); pr_debug("dev:%pK Exit\n", mbim); Loading Loading @@ -878,6 +877,17 @@ fmbim_cmd_complete(struct usb_ep *ep, struct usb_request *req) return; } static void mbim_response_complete(struct usb_ep *ep, struct usb_request *req) { struct f_mbim *mbim = req->context; pr_debug("%s: queue notify request if any new response available\n" , __func__); spin_lock(&mbim->lock); mbim_do_notify(mbim); spin_unlock(&mbim->lock); } static int mbim_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) { Loading Loading @@ -957,6 +967,8 @@ mbim_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) pr_debug("copied encapsulated_response %d bytes\n", value); req->complete = mbim_response_complete; req->context = mbim; break; case ((USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8) Loading