mbox series

[0/2] mmc: mmci: stm32: manage unaligned DMA req for SDIO

Message ID 20220317111944.116148-1-yann.gautier@foss.st.com
Headers show
Series mmc: mmci: stm32: manage unaligned DMA req for SDIO | expand

Message

Yann Gautier March 17, 2022, 11:19 a.m. UTC
The first patch corrects an issue when parsing the sg list to check DMA
constraints.
The second patch manages those DMA alignment by copying from or to a
bounce buffer, the way it is done in meson-gx-mmc.

Yann Gautier (2):
  mmc: mmci: stm32: correctly check all elements of sg list
  mmc: mmci: stm32: use a buffer for unaligned DMA requests

 drivers/mmc/host/mmci_stm32_sdmmc.c | 86 ++++++++++++++++++++++-------
 1 file changed, 66 insertions(+), 20 deletions(-)