Skip to content

Commit

Permalink
usb: dwc3: ep0: fix Get Status handling
Browse files Browse the repository at this point in the history
data was prepared on setup_buf but transfer
was started on ctrl_req, fix it.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Sep 9, 2011
1 parent 61d5824 commit b673cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/dwc3/ep0.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ static struct dwc3_ep *dwc3_wIndex_to_dep(struct dwc3 *dwc, __le16 wIndex_le)

static void dwc3_ep0_send_status_response(struct dwc3 *dwc)
{
dwc3_ep0_start_trans(dwc, 1, dwc->ctrl_req_addr,
dwc3_ep0_start_trans(dwc, 1, dwc->setup_buf_addr,
dwc->ep0_usb_req.length,
DWC3_TRBCTL_CONTROL_DATA);
dwc->ep0_status_pending = 1;
Expand Down

0 comments on commit b673cf3

Please sign in to comment.