On 9/25/2012 4:49 PM, Felipe Balbi wrote:
Can you post dwc3's logs ? We need to see if it executed set_halt() or set_wedge().
Host Does SET FEATURE(ENDPOINT_HALT). dwc3 codes calls __dwc3_gadget_ep_set_halt with correct dep for the specified endpoint. I do not think that dwc3 is doing anything wrong. Anyway, log is attached.
Regards Pratyush
# dwc3 dwc3: ep0out: Transfer Complete dwc3 dwc3: Transfer Complete while ep0out in state 'Setup Phase' dwc3 dwc3: Inspecting Setup Bytes dwc3 dwc3: Forwarding to gadget driver dwc3 dwc3: request 8f97a780 from ep1in completed 0/4096 ===> -108 dwc3 dwc3: request 8f97a000 from ep1out completed 0/4096 ===> -108 dwc3 dwc3: request 8f97aa80 from ep2in completed 0/1024 ===> -108 dwc3 dwc3: request 8f97a400 from ep2in completed 0/1024 ===> -108 dwc3 dwc3: request 8f97a800 from ep2in completed 0/1024 ===> -108 dwc3 dwc3: request 8f97a680 from ep2in completed 0/1024 ===> -108 dwc3 dwc3: request 8f97af00 from ep2in completed 0/1024 ===> -108 dwc3 dwc3: request 8f97af80 from ep2in completed 0/1024 ===> -108 dwc3 dwc3: request 8f97ab00 from ep2in completed 0/1024 ===> -108 dwc3 dwc3: request 8f97a580 from ep2in completed 0/1024 ===> -108 dwc3 dwc3: request 8f97a880 from ep2out completed 0/1024 ===> -108 dwc3 dwc3: request 8f97a300 from ep2out completed 0/1024 ===> -108 dwc3 dwc3: request 8f97a180 from ep2out completed 0/1024 ===> -108 dwc3 dwc3: request 8f8c7e80 from ep2out completed 0/1024 ===> -108 dwc3 dwc3: request 8f8c7d00 from ep2out completed 0/1024 ===> -108 dwc3 dwc3: request 8f936c80 from ep2out completed 0/1024 ===> -108 dwc3 dwc3: request 8f936280 from ep2out completed 0/1024 ===> -108 dwc3 dwc3: request 8f9fde80 from ep2out completed 0/1024 ===> -108 dwc3 dwc3: Enabling ep1in-bulk dwc3 dwc3: ep1in-bulk: cmd 'Set Endpoint Configuration' params 00022004 06000500 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep1in-bulk: cmd 'Set Endpoint Transfer Resource' params 00000001 00000000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: queing request 8f9fde80 to ep1in-bulk length 4096 dwc3 dwc3: Enabling ep1out-bulk dwc3 dwc3: ep1out-bulk: cmd 'Set Endpoint Configuration' params 00002004 04000500 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep1out-bulk: cmd 'Set Endpoint Transfer Resource' params 00000001 00000000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: queing request 8f9fd500 to ep1out-bulk length 4096 dwc3 dwc3: Enabling ep2in-isoc dwc3 dwc3: ep2in-isoc: cmd 'Set Endpoint Configuration' params 00042002 0a030700 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep2in-isoc: cmd 'Set Endpoint Transfer Resource' params 00000001 00000000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: queing request 8f936280 to ep2in-isoc length 1024 dwc3 dwc3: queing request 8f936c80 to ep2in-isoc length 1024 dwc3 dwc3: queing request 8f8c7d00 to ep2in-isoc length 1024 dwc3 dwc3: queing request 8f8c7e80 to ep2in-isoc length 1024 dwc3 dwc3: queing request 8f97a180 to ep2in-isoc length 1024 dwc3 dwc3: queing request 8f97a300 to ep2in-isoc length 1024 dwc3 dwc3: queing request 8f97a880 to ep2in-isoc length 1024 dwc3 dwc3: queing request 8f97a580 to ep2in-isoc length 1024 dwc3 dwc3: Enabling ep2out-isoc dwc3 dwc3: ep2out-isoc: cmd 'Set Endpoint Configuration' params 00002002 08030700 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep2out-isoc: cmd 'Set Endpoint Transfer Resource' params 00000001 00000000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: queing request 8f97ab00 to ep2out-isoc length 1024 dwc3 dwc3: queing request 8f97af80 to ep2out-isoc length 1024 dwc3 dwc3: queing request 8f97af00 to ep2out-isoc length 1024 dwc3 dwc3: queing request 8f97a680 to ep2out-isoc length 1024 dwc3 dwc3: queing request 8f97a800 to ep2out-isoc length 1024 dwc3 dwc3: queing request 8f97a400 to ep2out-isoc length 1024 dwc3 dwc3: queing request 8f97aa80 to ep2out-isoc length 1024 dwc3 dwc3: queing request 8f97a000 to ep2out-isoc length 1024 dwc3 dwc3: queueing request 8f94c480 to ep0out length 0, state 'Setup Phase' dwc3 dwc3: ep0in: Transfer Not Ready dwc3 dwc3: Transfer Not Ready while ep0in in state 'Setup Phase' dwc3 dwc3: Control Status dwc3 dwc3: ep0in: cmd 'Start Transfer' params 00000000 0f909000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep0in: Transfer Complete dwc3 dwc3: Transfer Complete while ep0in in state 'Status Phase' dwc3 dwc3: Status Phase dwc3 dwc3: request 8f94c480 from ep0out completed 0/0 ===> 0 dwc3 dwc3: ep0out: cmd 'Start Transfer' params 00000000 0f909000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep0out: Transfer Complete dwc3 dwc3: Transfer Complete while ep0out in state 'Setup Phase' dwc3 dwc3: Inspecting Setup Bytes dwc3 dwc3: USB_REQ_GET_STATUS dwc3 dwc3: ep0in: cmd 'Start Transfer' params 00000000 0f909000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep0in: Transfer Not Ready dwc3 dwc3: Transfer Not Ready while ep0in in state 'Data Phase' dwc3 dwc3: Control Data dwc3 dwc3: ep0in: Transfer Complete dwc3 dwc3: Transfer Complete while ep0in in state 'Data Phase' dwc3 dwc3: Data Phase dwc3 dwc3: request 8f9b6030 from ep0out completed 2/2 ===> 0 dwc3 dwc3: ep0out: Transfer Not Ready dwc3 dwc3: Transfer Not Ready while ep0out in state 'Data Phase' dwc3 dwc3: Control Status dwc3 dwc3: ep0out: cmd 'Start Transfer' params 00000000 0f909000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep0out: Transfer Complete dwc3 dwc3: Transfer Complete while ep0out in state 'Status Phase' dwc3 dwc3: Status Phase dwc3 dwc3: ep0out: cmd 'Start Transfer' params 00000000 0f909000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep1in-bulk: Transfer Not Ready dwc3 dwc3: ep1in-bulk: reason Transfer Not Active dwc3 dwc3: ep1in-bulk: req 8f9fde80 dma 0f059000 length 4096 last dwc3 dwc3: ep1in-bulk: cmd 'Start Transfer' params 00000000 0f90d000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep0out: Transfer Complete dwc3 dwc3: Transfer Complete while ep0out in state 'Setup Phase' dwc3 dwc3: Inspecting Setup Bytes dwc3 dwc3: USB_REQ_SET_FEATURE dwc3 dwc3: ep1in-bulk: cmd 'Set Stall' params 00000000 00000000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep0in: Transfer Not Ready dwc3 dwc3: Transfer Not Ready while ep0in in state 'Setup Phase' dwc3 dwc3: Control Status dwc3 dwc3: ep0in: cmd 'Start Transfer' params 00000000 0f909000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep0in: Transfer Complete dwc3 dwc3: Transfer Complete while ep0in in state 'Status Phase' dwc3 dwc3: Status Phase dwc3 dwc3: ep0out: cmd 'Start Transfer' params 00000000 0f909000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep0out: Transfer Complete dwc3 dwc3: Transfer Complete while ep0out in state 'Setup Phase' dwc3 dwc3: Inspecting Setup Bytes dwc3 dwc3: USB_REQ_GET_STATUS dwc3 dwc3: ep0in: cmd 'Start Transfer' params 00000000 0f909000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep0in: Transfer Not Ready dwc3 dwc3: Transfer Not Ready while ep0in in state 'Data Phase' dwc3 dwc3: Control Data dwc3 dwc3: ep0in: Transfer Complete dwc3 dwc3: Transfer Complete while ep0in in state 'Data Phase' dwc3 dwc3: Data Phase dwc3 dwc3: request 8f9b6030 from ep0out completed 2/2 ===> 0 dwc3 dwc3: ep0out: Transfer Not Ready dwc3 dwc3: Transfer Not Ready while ep0out in state 'Data Phase' dwc3 dwc3: Control Status dwc3 dwc3: ep0out: cmd 'Start Transfer' params 00000000 0f909000 00000000 dwc3 dwc3: Command Complete --> 0 dwc3 dwc3: ep0out: Transfer Complete dwc3 dwc3: Transfer Complete while ep0out in state 'Status Phase' dwc3 dwc3: Status Phase dwc3 dwc3: ep0out: cmd 'Start Transfer' params 00000000 0f909000 00000000 dwc3 dwc3: Command Complete --> 0