]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: whci-hcd: correctly handle sg lists longer than QTD_MAX_XFER_SIZE.
authorDavid Vrabel <david.vrabel@csr.com>
Mon, 7 Dec 2009 13:50:39 +0000 (13:50 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:26 +0000 (11:55 -0800)
commit0d370755dd4ad3d119818579cfa3eb2e9978b3eb
treef8b7fa0640f156f4780f3c37a24e7af1f08729c2
parentf3f6faa9edf67c1018270793e0547b0f81abb47e
USB: whci-hcd: correctly handle sg lists longer than QTD_MAX_XFER_SIZE.

When building qTDs (sTDs) from a scatter-gather list, the length of the
qTD must be a multiple of wMaxPacketSize if the transfer continues into
another qTD.

This also fixes a link failure on configurations for 32 bit processors
with 64 bit dma_addr_t (e.g., CONFIG_HIGHMEM_64G).

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