usb-serial: wakeup device on input
commit5843b6b35250139d91220ac3b75d467703e345b3
authorJason Andryuk <jandryuk@gmail.com>
Fri, 6 Mar 2020 14:09:17 +0000 (6 09:09 -0500)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 9 Mar 2020 10:06:36 +0000 (9 11:06 +0100)
tree4126abeda924df6191c5911fbcfe6977f36b304b
parent67f17e23baca5dd545fe98b01169cc351a70fe35
usb-serial: wakeup device on input

Currently usb-serial devices are unable to send data into guests with
the xhci controller.  Data is copied into the usb-serial's buffer, but
it is not sent into the guest.  Data coming out of the guest works
properly.  usb-serial devices work properly with ehci.

Have usb-serial call usb_wakeup() when receiving data from the chardev.
This seems to notify the xhci controller and fix inbound data flow.

Also add USB_CFG_ATT_WAKEUP to the device's bmAttributes.  This matches
a real FTDI serial adapter's bmAttributes.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Message-id: 20200306140917.26726-1-jandryuk@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-serial.c