]> git.ipfire.org Git - thirdparty/qemu.git/commit
ehci: Fix interrupts stopping when Interrupt Threshold Control is 8
authorHans de Goede <hdegoede@redhat.com>
Mon, 10 Sep 2012 10:44:10 +0000 (12:44 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:16 +0000 (21:44 -0500)
commit29ecaa26a83753e67bc8ba7cacf08d3948e868af
treefca33def06215686eb6a0a0cc295e0318ad33cdd
parent1f97f6c9fe45bcfc9e59d23076e5a39f1e22de51
ehci: Fix interrupts stopping when Interrupt Threshold Control is 8

If Interrupt Threshold Control is 8 or a multiple of 8, then
s->usbsts_frindex can become exactly 0x4000, at which point
(s->usbsts_frindex > s->frindex) will never become true, as
s->usbsts_frindex will not be lowered / reset in this case.

This patch fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit ffa1f2e088eb7e3d57f2fc35f21e7bdb23e592c5)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/usb/hcd-ehci.c