Message ID | CAAhU36jtDxo65jN=fS7s6odND0QYSGrUdYayCPKK6brDoNgq8Q@mail.gmail.com |
---|---|
State | Not Applicable |
Delegated to: | Marek Vasut |
Headers | show |
diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index 4cd19c3..64a6662 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -581,7 +581,10 @@ static void handle_setup(void) /* 0 length -> no Data Stage. Flip dir for Status Stage */ DBG("%s: 0 length: flip ep0 dir for Status Stage\n", __func__); flip_ep0_direction(); - controller.ep0_data_phase = false; + if (r.bRequestType == 0x21) + controller.ep0_data_phase = true; + else + controller.ep0_data_phase = false; }