OSDN Git Service

uhci: Raise interrupt when requested even for non active tds
authorHans de Goede <hdegoede@redhat.com>
Wed, 10 Oct 2012 13:50:36 +0000 (15:50 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 11 Oct 2012 07:33:33 +0000 (09:33 +0200)
commit883bca776daa43111e9c39008f0038f7c62ae723
treeb314de7826dd9ceeadc2ff3eb4c1167bde4b01f1
parent5c16f767813602fbf57414e2a11057e252e0d422
uhci: Raise interrupt when requested even for non active tds

According to the spec we must raise an interrupt when one is requested
even for non active tds.

Linux depends on this, for bulk transfers it runs an inactivity timer
to work around a bug in early uhci revisions, when we take longer then
200 ms to process a packet, this timer goes of, and as part of the
handling Linux then unlinks the qh, and relinks it after the frindex
has increased by atleast 1, the problem is Linux only checks for the
frindex increases on an interrupt, and we don't send that, causing
the qh to go inactive for more then 32 frames, at which point we
consider the packet cancelled.

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