On Tue, Apr 08, 2025 at 05:57:20PM +0530, Hardik Gohil wrote:
From: Yann Gautier yann.gautier@foss.st.com
[ Upstream commit 970dc9c11a17994ab878016b536612ab00d1441d ]
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 Stable-dep-of: 6b1ba3f9040b ("mmc: mmci: stm32: fix DMA API overlapping mappings warning") Signed-off-by: Sasha Levin sashal@kernel.org Tested-by: Hardik A Gohil hgohil@mvista.com
This fix was not backported to v5.4
Patch 1 and Patch 2 there were only line change.
Tested build successfully
dependend patch for this 2 patches https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v...
Then please send the full patch series, not just "prep" patches.
I'm dropping both of these from my review queue now, thanks.
greg k-h