USB: make urb scatter-gather support more generic
authorDavid Vrabel <david.vrabel@csr.com>
Mon, 24 Aug 2009 13:44:30 +0000 (14:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:14 +0000 (11:55 -0800)
commit4c1bd3d7a7d114dabd58f62f386ac4bfd268be1f
tree1c8d7d6df693c71ac0b3dcc4124498d91c939f2d
parent09ce497e79a930ac4912d6bc295baab82b39f8ab
USB: make urb scatter-gather support more generic

The WHCI HCD will also support urbs with scatter-gather lists.  Add a
usb_bus field to indicated how many sg list elements are supported by
the HCD.  Use this to decide whether to pass the scatter-list to the HCD
or not.

Make the usb-storage driver use this new field.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/message.c
drivers/usb/host/xhci-pci.c
drivers/usb/storage/usb.c
include/linux/usb.h