aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-gadget.c
diff options
context:
space:
mode:
authorDouglas Anderson <[email protected]>2023-07-25 18:02:27 +0000
committerMark Brown <[email protected]>2023-07-26 11:47:20 +0000
commitcc71c42b3dc1085d3e72dfa5603e827b9eb59da1 (patch)
treee8257c88fbf21f06fe0f380487addf14d6f6ed1d /drivers/usb/cdns3/cdns3-gadget.c
parentspi: spi-qcom-qspi: Fallback to PIO for xfers that aren't multiples of 4 bytes (diff)
downloadkernel-cc71c42b3dc1085d3e72dfa5603e827b9eb59da1.tar.gz
kernel-cc71c42b3dc1085d3e72dfa5603e827b9eb59da1.zip
spi: spi-qcom-qspi: Add mem_ops to avoid PIO for badly sized reads
In the patch ("spi: spi-qcom-qspi: Fallback to PIO for xfers that aren't multiples of 4 bytes") we detect reads that we can't handle properly and fallback to PIO mode. While that's correct behavior, we can do better by adding "spi_controller_mem_ops" for our controller. Once we do this then the caller will give us a transfer that's a multiple of 4-bytes so we can DMA. Fixes: b5762d95607e ("spi: spi-qcom-qspi: Add DMA mode support") Signed-off-by: Douglas Anderson <[email protected]> Reviewed-by: Vijaya Krishna Nivarthi <[email protected]> Link: https://lore.kernel.org/r/20230725110226.2.Id4a39804e01e4a06dae9b73fd2a5194c4c7ea453@changeid Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-gadget.c')
0 files changed, 0 insertions, 0 deletions