From: Kevin O'Connor Date: Tue, 5 Feb 2019 02:22:15 +0000 (-0500) Subject: usb-ehci: Clear pipe token on pipe reallocate X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=996d3c0297135f12ff3eda40dcb464b2375926e5;p=people%2Fandrewcoop%2Fseabios.git 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 --- diff --git a/src/hw/usb-ehci.c b/src/hw/usb-ehci.c index 7eca55b..d01fa85 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; }