USB: whci-hcd: support urbs with scatter-gather lists
authorDavid Vrabel <david.vrabel@csr.com>
Mon, 24 Aug 2009 14:02:27 +0000 (15:02 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:14 +0000 (11:55 -0800)
commit294a39e7829dfd663e6c5c94cede0c6a0c13e37f
treec9157a84b52aa64f29ce445e1e86a4f4523d8d39
parent4c1bd3d7a7d114dabd58f62f386ac4bfd268be1f
USB: whci-hcd: support urbs with scatter-gather lists

Support urbs with scatter-gather lists by trying to fit sg list elements
into page lists in one or more qTDs.  qTDs must end on a wMaxPacketSize
boundary so if this isn't possible the urb's sg list must be copied into
bounce buffers.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/whci/hcd.c
drivers/usb/host/whci/qset.c
drivers/usb/host/whci/whcd.h
drivers/usb/host/whci/whci-hc.h