• Sarah Sharp's avatar
    USB: xhci: Scatter gather list support for bulk transfers. · 8a96c052
    Sarah Sharp authored
    Add support for bulk URBs that pass scatter gather lists to xHCI.  This allows
    xHCI to more efficiently enqueue these transfers, and allows the host
    controller to take advantage of USB 3.0 "bursts" for bulk endpoints.
    
    Use requested length to calculate the number of TRBs needed for a scatter gather
    list transfer, instead of using the number of sglist entries.  The application
    can pass down a scatter gather list that is bigger than it needs for the
    requested transfer.
    
    Scatter gather entries can cross 64KB boundaries, so be careful to setup TRBs
    such that no buffer crosses a 64KB boundary.
    Signed-off-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    8a96c052
xhci-ring.c 37.5 KB