提交 9b0a1f95 编写于 作者: F Felipe Balbi

usb: dwc3: ep0: make sure wValue is 0 on GetStatus()

We don't (yet) support PTM_STATUS messages so let's not reply to them
erroneously.
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 1aed4178
......@@ -319,10 +319,16 @@ static int dwc3_ep0_handle_status(struct dwc3 *dwc,
{
struct dwc3_ep *dep;
u32 recip;
u32 value;
u32 reg;
u16 usb_status = 0;
__le16 *response_pkt;
/* We don't support PTM_STATUS */
value = le16_to_cpu(ctrl->wValue);
if (value != 0)
return -EINVAL;
recip = ctrl->bRequestType & USB_RECIP_MASK;
switch (recip) {
case USB_RECIP_DEVICE:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册