]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sunxi-mmc: Fix DMA descriptors allocated above 32 bits
authorSamuel Holland <samuel@sholland.org>
Sun, 24 Apr 2022 23:17:50 +0000 (18:17 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 May 2022 09:50:12 +0000 (11:50 +0200)
commit7b4a82cb9716c5ba28c2179d6bb44b3e7c3f1acf
tree31d306fd42cd30603f9e8feb08efbae4b5c10389
parent77c7d2e03a6b779aa4a84bffd0d7e82e216e5d81
mmc: sunxi-mmc: Fix DMA descriptors allocated above 32 bits

Newer variants of the MMC controller support a 34-bit physical address
space by using word addresses instead of byte addresses. However, the
code truncates the DMA descriptor address to 32 bits before applying the
shift. This breaks DMA for descriptors allocated above the 32-bit limit.

Fixes: 63554b288bce ("mmc: sunxi: add support for A100 mmc controller")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220424231751.32053-1-samuel@sholland.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c