summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-topcliff-pch.c
diff options
context:
space:
mode:
authorChristian Eggers <ceggers@arri.de>2020-07-28 13:08:32 +0300
committerMark Brown <broonie@kernel.org>2020-07-28 19:29:28 +0300
commitaa9e862d7d5bcecd4dca9f39e8b684b93dd84ee7 (patch)
treef6ac53356e4ffef387e1ad1e94889b0ef2106e9f /drivers/spi/spi-topcliff-pch.c
parentcfd97f94d036bf36122fa19d075c5741347aa178 (diff)
downloadlinux-aa9e862d7d5bcecd4dca9f39e8b684b93dd84ee7.tar.xz
spi: spidev: Align buffers for DMA
Simply copying all xfers from userspace into one bounce buffer causes alignment problems if the SPI controller uses DMA. Ensure that all transfer data blocks within the rx and tx bounce buffers are aligned for DMA (according to ARCH_KMALLOC_MINALIGN). Alignment may increase the usage of the bounce buffers. In some cases, the buffers may need to be increased using the "bufsiz" module parameter. Signed-off-by: Christian Eggers <ceggers@arri.de> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20200728100832.24788-1-ceggers@arri.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-topcliff-pch.c')
0 files changed, 0 insertions, 0 deletions