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:
parent
7d63249ef8
commit
a5cab58e9a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue