diff options
-rw-r--r-- | drivers/usb/dwc3/ep0.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 1ba86a11465..d6bfc73dedb 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c | |||
@@ -302,11 +302,14 @@ static int dwc3_ep0_handle_status(struct dwc3 *dwc, | |||
302 | 302 | ||
303 | response_pkt = (__le16 *) dwc->setup_buf; | 303 | response_pkt = (__le16 *) dwc->setup_buf; |
304 | *response_pkt = cpu_to_le16(usb_status); | 304 | *response_pkt = cpu_to_le16(usb_status); |
305 | |||
306 | dep = dwc->eps[0]; | ||
307 | dwc->ep0_usb_req.dep = dep; | ||
305 | dwc->ep0_usb_req.request.length = sizeof(*response_pkt); | 308 | dwc->ep0_usb_req.request.length = sizeof(*response_pkt); |
306 | dwc->ep0_usb_req.request.dma = dwc->setup_buf_addr; | 309 | dwc->ep0_usb_req.request.dma = dwc->setup_buf_addr; |
307 | dwc->ep0_usb_req.request.complete = dwc3_ep0_status_cmpl; | 310 | dwc->ep0_usb_req.request.complete = dwc3_ep0_status_cmpl; |
308 | return usb_ep_queue(&dwc->eps[0]->endpoint, &dwc->ep0_usb_req.request, | 311 | |
309 | GFP_ATOMIC); | 312 | return __dwc3_gadget_ep0_queue(dep, &dwc->ep0_usb_req); |
310 | } | 313 | } |
311 | 314 | ||
312 | static int dwc3_ep0_handle_feature(struct dwc3 *dwc, | 315 | static int dwc3_ep0_handle_feature(struct dwc3 *dwc, |