Changeset 398a94c in mainline for uspace/drv/bus/usb/xhci/endpoint.c


Ignore:
Timestamp:
2018-01-10T13:32:21Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8bab0d2
Parents:
4a00bc9
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-10 13:32:19)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-10 13:32:21)
Message:

xhci isoch: bug fixing

File:
1 edited

Legend:

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

    r4a00bc9 r398a94c  
    6565        endpoint_init(ep, dev, desc);
    6666
    67         xhci_ep->max_streams = 1 << (USB_SSC_MAX_STREAMS(desc->companion));
    6867        xhci_ep->max_burst = desc->companion.max_burst + 1;
    69         xhci_ep->mult = USB_SSC_MULT(desc->companion) + 1;
     68
     69        if (ep->transfer_type == USB_TRANSFER_BULK)
     70                xhci_ep->max_streams = 1 << (USB_SSC_MAX_STREAMS(desc->companion));
     71        else
     72                xhci_ep->max_streams = 1;
     73
     74        if (ep->transfer_type == USB_TRANSFER_ISOCHRONOUS)
     75                xhci_ep->mult = USB_SSC_MULT(desc->companion) + 1;
     76        else
     77                xhci_ep->mult = 1;
    7078
    7179        /* In USB 3, the semantics of wMaxPacketSize changed. Now the number of
     
    314322        }
    315323
    316         isoch_fini(xhci_ep);
     324        if (xhci_ep->base.transfer_type == USB_TRANSFER_ISOCHRONOUS)
     325                isoch_fini(xhci_ep);
    317326}
    318327
Note: See TracChangeset for help on using the changeset viewer.