Re: xhci_reset_endpoint() doesn't reset endpoint

2016-12-15 Thread Michal Necasek
On 12/14/2016 3:28 PM, Mathias Nyman wrote: On 14.12.2016 12:58, Michal Necasek wrote: prior to the endpoint reset. SetFeature(CLEAR_HALT) resets the toggle on the device, but not on the host. But we know for a fact that the device sends a packet (with data toggle 0) which the host USB stack nev

Re: xhci_reset_endpoint() doesn't reset endpoint

2016-12-14 Thread Mathias Nyman
On 14.12.2016 12:58, Michal Necasek wrote: prior to the endpoint reset. SetFeature(CLEAR_HALT) resets the toggle on the device, but not on the host. But we know for a fact that the device sends a packet (with data toggle 0) which the host USB stack never sees, and a data toggle mismatch explains

xhci_reset_endpoint() doesn't reset endpoint

2016-12-14 Thread Michal Necasek
Hi Mathias, We have run into a problem with a USB printer which we're quite confident is a bug in the Linux xHCI driver. There is no problem when the same printer is plugged into a port managed by the EHCI driver. The core problem is that xhci_reset_endpoint() doesn't do anything, and mo