diff options
author | Ming Lei <ming.lei@canonical.com> | 2013-08-08 09:48:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 14:56:16 -0400 |
commit | fc76051c453b4e65e736aed10e57192adcbcd453 (patch) | |
tree | 1e0d83af539eec72970f1aa316c18841e2e88154 /drivers/usb/host/xhci.c | |
parent | bcc48f1a7a0d40ae2e5a26aff72c2b674fd8b596 (diff) |
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 <stern@rowland.harvard.edu>
Acked-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r-- | drivers/usb/host/xhci.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) | |||
4841 | 4841 | ||
4842 | /* Accept arbitrarily long scatter-gather lists */ | 4842 | /* Accept arbitrarily long scatter-gather lists */ |
4843 | hcd->self.sg_tablesize = ~0; | 4843 | hcd->self.sg_tablesize = ~0; |
4844 | |||
4845 | /* support to build packet from discontinuous buffers */ | ||
4846 | hcd->self.no_sg_constraint = 1; | ||
4847 | |||
4844 | /* XHCI controllers don't stop the ep queue on short packets :| */ | 4848 | /* XHCI controllers don't stop the ep queue on short packets :| */ |
4845 | hcd->self.no_stop_on_short = 1; | 4849 | hcd->self.no_stop_on_short = 1; |
4846 | 4850 | ||