Commit d7b794f6 authored by Rong Chen's avatar Rong Chen Committed by Zheng Zengkai
Browse files

mmc: meson: Fix usage of meson_mmc_post_req()

stable inclusion
from stable-v5.10.106
commit a69aa422b478592539201a70cab9146b2a9e53bb
bugzilla: https://gitee.com/openeuler/kernel/issues/I573US

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a69aa422b478592539201a70cab9146b2a9e53bb



--------------------------------

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>
Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 1d8a9e7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment