summaryrefslogtreecommitdiffstats
path: root/MAINTAINERS
diff options
context:
space:
mode:
authorPaul Zimmerman2014-09-16 22:47:27 +0200
committerGreg Kroah-Hartman2014-09-20 01:17:58 +0200
commit5dce95554a1866339de039060ecd7122056a9d71 (patch)
treee25163adc05c801147a573462dde9ee51ebaa0fb /MAINTAINERS
parentusb: dwc2: clip max_transfer_size to 65535 (diff)
downloadkernel-qcow2-linux-5dce95554a1866339de039060ecd7122056a9d71.tar.gz
kernel-qcow2-linux-5dce95554a1866339de039060ecd7122056a9d71.tar.xz
kernel-qcow2-linux-5dce95554a1866339de039060ecd7122056a9d71.zip
usb: dwc2: handle DMA buffer unmapping sanely
The driver's handling of DMA buffers for non-aligned transfers was kind of nuts. For IN transfers, it left the URB DMA buffer mapped until the transfer completed, then synced it, copied the data from the bounce buffer, then synced it again. Instead of that, just call usb_hcd_unmap_urb_for_dma() to unmap the buffer before starting the transfer. Then no syncing is required when doing the copy. This should also allow handling of other types of mappings besides just dma_map_single() ones. Also reduce the size of the bounce buffer allocation for Isoc endpoints to 3K, since that's the largest possible transfer size. Tested on Raspberry Pi and Altera SOCFPGA. Signed-off-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions