Skip to content

Commit

Permalink
USB: whci-hcd: support urbs with scatter-gather lists
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Vrabel authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 4c1bd3d commit 294a39e
Show file tree
Hide file tree
Showing 4 changed files with 332 additions and 31 deletions.
1 change: 1 addition & 0 deletions drivers/usb/host/whci/hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ static int whc_probe(struct umc_dev *umc)
}

usb_hcd->wireless = 1;
usb_hcd->self.sg_tablesize = 2048; /* somewhat arbitrary */

wusbhc = usb_hcd_to_wusbhc(usb_hcd);
whc = wusbhc_to_whc(wusbhc);
Expand Down
Loading

0 comments on commit 294a39e

Please sign in to comment.