From: Andiry Xu Date: Mon, 5 Mar 2012 09:49:38 +0000 (+0800) Subject: xHCI: update sg tablesize X-Git-Tag: MMI-PSA29.97-13-9~17266^2~21^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fdaf8b3183d126d70f19e13c690c762c65b28a5d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git xHCI: update sg tablesize Update sg tablesize as we can expand the ring now. Signed-off-by: Andiry Xu Signed-off-by: Sarah Sharp Tested-by: Paul Zimmerman --- diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index dec5b2dc298c..f9f161fa66ad 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -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);