summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sdhci-of-esdhc.c
diff options
context:
space:
mode:
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>2014-09-16 13:47:27 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-19 16:17:58 -0700
commit5dce95554a1866339de039060ecd7122056a9d71 (patch)
treee25163adc05c801147a573462dde9ee51ebaa0fb /drivers/mmc/host/sdhci-of-esdhc.c
parente8f8c14d9da7ab1b8a7b0f769cd7148ca2cc7d10 (diff)
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 'drivers/mmc/host/sdhci-of-esdhc.c')
0 files changed, 0 insertions, 0 deletions