summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/renesas_sdhi_internal_dmac.c
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@foss.st.com>2022-03-28 17:51:14 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2022-04-26 15:05:18 +0300
commit970dc9c11a17994ab878016b536612ab00d1441d (patch)
tree96ca797e1d0118c8325dbd3f81f39e8925386558 /drivers/mmc/host/renesas_sdhi_internal_dmac.c
parented9ab884987bf80e015f0531e10ad1c1af978e09 (diff)
downloadlinux-970dc9c11a17994ab878016b536612ab00d1441d.tar.xz
mmc: mmci: stm32: use a buffer for unaligned DMA requests
In SDIO mode, the sg list for requests can be unaligned with what the STM32 SDMMC internal DMA can support. In that case, instead of failing, use a temporary bounce buffer to copy from/to the sg list. This buffer is limited to 1MB. But for that we need to also limit max_req_size to 1MB. It has not shown any throughput penalties for SD-cards or eMMC. Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Link: https://lore.kernel.org/r/20220328145114.334577-1-yann.gautier@foss.st.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/renesas_sdhi_internal_dmac.c')
0 files changed, 0 insertions, 0 deletions