]> git.itanic.dy.fi Git - linux-stable/commit
mmc: meson: Fix usage of meson_mmc_post_req()
authorRong Chen <rong.chen@amlogic.com>
Wed, 16 Feb 2022 12:42:39 +0000 (20:42 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 28 Feb 2022 12:18:12 +0000 (13:18 +0100)
commitf0d2f15362f02444c5d7ffd5a5eb03e4aa54b685
treee47ed397c3dda001773d9e22570fbb9816f8bc6d
parent7e57714cd0ad2d5bb90e50b5096a0e671dec1ef3
mmc: meson: Fix usage of meson_mmc_post_req()

Currently meson_mmc_post_req() is called in meson_mmc_request() right
after meson_mmc_start_cmd(). This could lead to DMA unmapping before the request
is actually finished.

To fix, don't call meson_mmc_post_req() until meson_mmc_request_done().

Signed-off-by: Rong Chen <rong.chen@amlogic.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Fixes: 79ed05e329c3 ("mmc: meson-gx: add support for descriptor chain mode")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220216124239.4007667-1-rong.chen@amlogic.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c