Re: [PATCH v2 2/4] usb: host: xhci: handle COMP_STOP from SETUP phase too

2016-11-30 Thread Felipe Balbi
Hi, Felipe Balbi writes: > Stop Endpoint command can come at any point and we > have no control of that. We should make sure to > handle COMP_STOP on SETUP phase as well, otherwise > urb->actual_lenght might be set to negative values > in some occasions such as below: > > urb->length = 4; > bu

[PATCH v2 2/4] usb: host: xhci: handle COMP_STOP from SETUP phase too

2016-11-28 Thread Felipe Balbi
Stop Endpoint command can come at any point and we have no control of that. We should make sure to handle COMP_STOP on SETUP phase as well, otherwise urb->actual_lenght might be set to negative values in some occasions such as below: urb->length = 4; build_control_transfer_td_for(urb, ep);