usb-ehci: Clear pipe token on pipe reallocate

Make sure to clear the token before reuse as it may otherwise have an
incorrect toggle setting.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
(cherry picked from commit 996d3c0297)
This commit is contained in:
Kevin O'Connor 2019-02-04 21:22:15 -05:00 committed by Gerd Hoffmann
parent 7d63249ef8
commit a5cab58e9a
1 changed files with 1 additions and 0 deletions

View File

@ -467,6 +467,7 @@ ehci_realloc_pipe(struct usbdevice_s *usbdev, struct usb_pipe *upipe
// Use previously allocated pipe.
struct ehci_pipe *pipe = container_of(usbpipe, struct ehci_pipe, pipe);
ehci_desc2pipe(pipe, usbdev, epdesc);
pipe->qh.token = 0;
return usbpipe;
}