diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-02-04 21:22:15 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-02-04 21:22:15 -0500 |
commit | 996d3c0297135f12ff3eda40dcb464b2375926e5 (patch) | |
tree | 8e85defce294d9c7068e86f526c0ebd977134c94 | |
parent | 63d69674666eb78153ecc6a7e2ede4305ad7c966 (diff) | |
download | seabios-996d3c0297135f12ff3eda40dcb464b2375926e5.tar.gz |
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>
-rw-r--r-- | src/hw/usb-ehci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hw/usb-ehci.c b/src/hw/usb-ehci.c index 7eca55bd..d01fa853 100644 --- a/src/hw/usb-ehci.c +++ b/src/hw/usb-ehci.c @@ -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; } |