USB: introduce usb_device_no_sg_constraint() helper
authorMing Lei <ming.lei@canonical.com>
Thu, 8 Aug 2013 13:48:22 +0000 (21:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 18:56:16 +0000 (11:56 -0700)
commitbcc48f1a7a0d40ae2e5a26aff72c2b674fd8b596
tree887e24d1dc2f7701dae13ec2d071ee71cdddccdc
parent428aac8a81058e2303677a8fbf26670229e51d3a
USB: introduce usb_device_no_sg_constraint() helper

Some host controllers(such as xHCI) can support building
packet from discontinuous buffers, so introduce one flag
and helper for this kind of host controllers, then the
feature can help some applications(such as usbnet) by
supporting arbitrary length of sg buffers.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
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>
drivers/usb/core/urb.c
include/linux/usb.h