OSDN Git Service

ehci: fix halt status handling
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 24 May 2012 10:53:43 +0000 (12:53 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 7 Jun 2012 08:02:23 +0000 (10:02 +0200)
commitdaf25307b4f8c5c13b3a15059fbf9df55823bb72
tree5095a542896ad02e0000d1eb6293e30b201a5d11
parentb53f685d63e1928c0cee669703a8b30f604e6a6e
ehci: fix halt status handling

When the enable bits for controller / async schedule / periodic schedule
change just make sure we kick the frame timer and let
ehci_advance_periodic_state and ehci_advance_async_state handle the
controller state changes.

This will make ehci set USBSTS_HALT when the controller shutdown is
actually done, once both schedules are in inactive state and the
USBSTS_PSS and USBSTS_ASS bits are clear.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ehci.c