aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-02-04 21:22:15 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-02-04 21:22:15 -0500
commit996d3c0297135f12ff3eda40dcb464b2375926e5 (patch)
tree8e85defce294d9c7068e86f526c0ebd977134c94
parent63d69674666eb78153ecc6a7e2ede4305ad7c966 (diff)
downloadseabios-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.c1
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;
}