Skip to content

Commit

Permalink
USB: XHCI: mark no_sg_constraint
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ming Lei authored and Greg Kroah-Hartman committed Aug 12, 2013
1 parent bcc48f1 commit fc76051
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/usb/host/xhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fc76051

Please sign in to comment.