ehci: Kick async schedule on wakeup in the non companion case
authorHans de Goede <hdegoede@redhat.com>
Fri, 6 Jul 2012 14:53:39 +0000 (16:53 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 9 Jul 2012 09:59:54 +0000 (11:59 +0200)
commit379521175c6adecd48afcfde647c224f9586c9c0
treed3cd2b1dcf303f44138f13eb9a678628bee2cb5c
parent7341ea075c09258b98a1d0efc60efd402cbfc9b4
ehci: Kick async schedule on wakeup in the non companion case

Commit 0f588df8b3688b00e77aabaa32e26ece5f19bd39, added code
to ehci_wakeup to kick the async schedule on wakeup, but the else
was positioned wrong making it trigger for devices which are routed
to the companion rather then to the ehci controller itself.

This patch fixes this. Note that the "programming style" with using the
return at the end of the companion block matches how the companion case
is handled in the other ports ops, and is done this way for consistency.

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