usb-ehci: Any packet completion except for NAK should set the interrupt
As clearly stated in the 2.3.2 of the EHCI spec, any time USBERRINT get sets then if the td has its IOC bit set USBINT should be set as well. This means that for any status except for USB_RET_NAK we should set USBINT if the IOC bit is set. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
e850c2b453
commit
2763cbc751
|
@ -1360,7 +1360,7 @@ err:
|
|||
q->qh.token ^= QTD_TOKEN_DTOGGLE;
|
||||
q->qh.token &= ~QTD_TOKEN_ACTIVE;
|
||||
|
||||
if ((q->usb_status >= 0) && (q->qh.token & QTD_TOKEN_IOC)) {
|
||||
if ((q->usb_status != USB_RET_NAK) && (q->qh.token & QTD_TOKEN_IOC)) {
|
||||
ehci_record_interrupt(q->ehci, USBSTS_INT);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue