]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/usb/redirect.c
Merge remote-tracking branch 'aneesh/for-upstream' into staging
[mirror_qemu.git] / hw / usb / redirect.c
index 490c90fae1e3d675e5b0ed9786f51e9c345d5c3c..9e7f6453f7dba602bcc3fdc73cfa3bd8fe3c1da6 100644 (file)
@@ -1644,6 +1644,10 @@ static void usbredir_interrupt_packet(void *priv, uint64_t id,
             return;
         }
 
+        if (QTAILQ_EMPTY(&dev->endpoint[EP2I(ep)].bufpq)) {
+            usb_wakeup(usb_ep_get(&dev->dev, USB_TOKEN_IN, ep & 0x0f));
+        }
+
         /* bufp_alloc also adds the packet to the ep queue */
         bufp_alloc(dev, data, data_len, interrupt_packet->status, ep);
     } else {