提交 4552a0ca 编写于 作者: F Felipe Balbi

usb: dwc3: fix a WARN and a comment

we're now have DWC3_EP0_BOUNCE_SIZE to tell
us the actual size of the bufer. Let's use that
instead of ep0 wMaxPacketSize.
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 f8f5701b
...@@ -821,14 +821,14 @@ static void dwc3_ep0_do_control_data(struct dwc3 *dwc, ...@@ -821,14 +821,14 @@ static void dwc3_ep0_do_control_data(struct dwc3 *dwc,
return; return;
} }
WARN_ON(req->request.length > dep->endpoint.maxpacket); WARN_ON(req->request.length > DWC3_EP0_BOUNCE_SIZE);
dwc->ep0_bounced = true; dwc->ep0_bounced = true;
/* /*
* REVISIT in case request length is bigger than EP0 * REVISIT in case request length is bigger than
* wMaxPacketSize, we will need two chained TRBs to handle * DWC3_EP0_BOUNCE_SIZE we will need two chained
* the transfer. * TRBs to handle the transfer.
*/ */
ret = dwc3_ep0_start_trans(dwc, event->endpoint_number, ret = dwc3_ep0_start_trans(dwc, event->endpoint_number,
dwc->ep0_bounce_addr, dep->endpoint.maxpacket, dwc->ep0_bounce_addr, dep->endpoint.maxpacket,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册