Changeset cb19590 in mainline


Ignore:
Timestamp:
2018-06-27T14:57:15Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1c9ae08
Parents:
60876fd3
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-27 14:56:56)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-27 14:57:15)
Message:

Better fix for USB endpoint interval. (thx aearsis)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/endpoint.c

    r60876fd3 rcb19590  
    103103            ep->transfer_type != USB_TRANSFER_INTERRUPT) {
    104104
    105                 if (xhci_ep->interval > 0)
    106                         xhci_ep->interval = 1 << (xhci_ep->interval - 1);
     105                // XXX: According to the spec, the interval should be
     106                //      from [1, 16]. However, in QEMU, we get 0 here
     107                //      (a QEMU bug?).
     108                if (xhci_ep->interval == 0)
     109                        xhci_ep->interval = 8;
     110
     111                xhci_ep->interval = 1 << (xhci_ep->interval - 1);
    107112        }
    108113
Note: See TracChangeset for help on using the changeset viewer.