xHCI: update sg tablesize
authorAndiry Xu <andiry.xu@amd.com>
Mon, 5 Mar 2012 09:49:38 +0000 (17:49 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 13 Mar 2012 16:30:53 +0000 (09:30 -0700)
Update sg tablesize as we can expand the ring now.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Paul Zimmerman <Paul.Zimmerman@synopsys.com>
drivers/usb/host/xhci.c

index dec5b2dc298c8d784c83b3e8d7f1b9699632e054..f9f161fa66ad1f861aa0e77691860582360ddfb1 100644 (file)
@@ -3968,7 +3968,8 @@ int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks)
        int                     retval;
        u32                     temp;
 
-       hcd->self.sg_tablesize = TRBS_PER_SEGMENT - 2;
+       /* Accept arbitrarily long scatter-gather lists */
+       hcd->self.sg_tablesize = ~0;
 
        if (usb_hcd_is_primary_hcd(hcd)) {
                xhci = kzalloc(sizeof(struct xhci_hcd), GFP_KERNEL);