]> git.proxmox.com Git - qemu.git/commit
hw/usb-ohci.c: Fix handling of remote wakeup corner cases
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 15 Jun 2011 17:22:35 +0000 (18:22 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 23 Jun 2011 09:28:07 +0000 (11:28 +0200)
commitf3dc0051dcd68b395861b6f1f3d5a900d44bd767
treea0db8bced1bb4764d114a4c76a726083e4dfdaf5
parentbf5547f5365c1bfeba9d5c3e87653b9803a875a5
hw/usb-ohci.c: Fix handling of remote wakeup corner cases

Correct a number of minor errors in the OHCI wakeup implementation:
 * when the port is suspended but the controller is not, raise RHSC
 * when the controller is suspended but the port is not, raise RD
 * when the controller is suspended, move it to resume state

These fix some edge cases where a USB device might not successfully get
the attention of the guest OS if it tried to do so at the wrong time.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-ohci.c