]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/host/xhci-pci.c
USB: make urb scatter-gather support more generic
[~andy/linux] / drivers / usb / host / xhci-pci.c
index 06595ec27bb71af11cd4524c316070c61da1f2d0..e097008d6fb1afe9cf8269721b60265ac2115970 100644 (file)
@@ -54,6 +54,8 @@ static int xhci_pci_setup(struct usb_hcd *hcd)
        struct pci_dev          *pdev = to_pci_dev(hcd->self.controller);
        int                     retval;
 
+       hcd->self.sg_tablesize = TRBS_PER_SEGMENT - 1;
+
        xhci->cap_regs = hcd->regs;
        xhci->op_regs = hcd->regs +
                HC_LENGTH(xhci_readl(xhci, &xhci->cap_regs->hc_capbase));