From: Ming Lei Date: Thu, 8 Aug 2013 13:48:23 +0000 (+0800) Subject: USB: XHCI: mark no_sg_constraint X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fc76051c453b4e65e736aed10e57192adcbcd453;p=openwrt%2Fstaging%2Fblogic.git USB: XHCI: mark no_sg_constraint This patch marks all xHCI controllers as no_sg_constraint since xHCI supports building packet from discontinuous buffers. Cc: Alan Stern Acked-by: Sarah Sharp Signed-off-by: Ming Lei Reviewed-by: Eric Dumazet Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index c8d7199eefa0..246de8905db1 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -4841,6 +4841,10 @@ int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks) /* Accept arbitrarily long scatter-gather lists */ hcd->self.sg_tablesize = ~0; + + /* support to build packet from discontinuous buffers */ + hcd->self.no_sg_constraint = 1; + /* XHCI controllers don't stop the ep queue on short packets :| */ hcd->self.no_stop_on_short = 1;