]> git.baikalelectronics.ru Git - kernel.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)
commit64330d122295c440b53a0b75b39cc98e89ca6711
treef8b7fa0640f156f4780f3c37a24e7af1f08729c2
parenta79ea0464d63a3d9265fd49026c352a4ab0a4134
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