Skip to content
Commit d6948de3 authored by Rong Chen's avatar Rong Chen Committed by Greg Kroah-Hartman
Browse files

mmc: meson: Fix usage of meson_mmc_post_req()



commit f0d2f153 upstream.

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: default avatarRong Chen <rong.chen@amlogic.com>
Reviewed-by: default avatarKevin Hilman <khilman@baylibre.com>
Fixes: 79ed05e3 ("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: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba0d7bee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment