]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd75c50001652de6fd7d4c4a5ae9cce76dfe66865
tree887e24d1dc2f7701dae13ec2d071ee71cdddccdc
parenta2e372b8949ac096df487b90c1c32bdebd75246e
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