]> Git Repo - linux.git/commit
mmc: meson-gx: check for scatterlist size alignment in block mode
authorDmitry Lebed <[email protected]>
Fri, 18 Dec 2020 07:53:12 +0000 (23:53 -0800)
committerUlf Hansson <[email protected]>
Mon, 1 Feb 2021 10:54:43 +0000 (11:54 +0100)
commite085b51c74cc99334c290f7c67d039c95f788239
tree7db914d30de9c74d699b488fdcd67a5d0795f686
parent0354ca6edd464a2cf332f390581977b8699ed081
mmc: meson-gx: check for scatterlist size alignment in block mode

Enable SGDMA support for SD_IO_RW_EXTENDED and add proper check
for scatterlist size alignment in block mode.

According to documentation, in SDIO block mode meson-gx DMA could
only handle buffers with sizes that are multiples of SDIO block size.

Some SDIO drivers like brcmfmac use scatterlist API, but do not enforce
proper scatterlist buffer size alignemnt, this looks like a root cause
of non-working CMD53.

Some minor style fixes.

Signed-off-by: Dmitry Lebed <[email protected]>
Reviewed-by: Jerome Brunet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
drivers/mmc/host/meson-gx-mmc.c
This page took 0.054135 seconds and 4 git commands to generate.