Re: [PATCH 02/37] usb: host: xhci: handle COMP_STOP from SETUP phase too

2017-01-03 Thread Felipe Balbi
Hi, Mathias Nyman writes: > On 29.12.2016 13:00, Felipe Balbi wrote: >> 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

Re: [PATCH 02/37] usb: host: xhci: handle COMP_STOP from SETUP phase too

2017-01-03 Thread Mathias Nyman
On 29.12.2016 13:00, Felipe Balbi wrote: 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;

[PATCH 02/37] usb: host: xhci: handle COMP_STOP from SETUP phase too

2016-12-29 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);