]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: mtk-sd: receive cmd8 data when hs400 tuning fail
authorMengqi Zhang <mengqi.zhang@mediatek.com>
Tue, 16 Jul 2024 01:37:04 +0000 (09:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2024 15:36:09 +0000 (17:36 +0200)
commit7adac5aee802f312c49f19086688ea45b535d581
tree56ce8fbc43fc086037cfb8522b37ece6b69dfdd4
parentf03ea012a3c0959aa3b76c58acd9d1ed27706c78
mmc: mtk-sd: receive cmd8 data when hs400 tuning fail

commit 9374ae912dbb1eed8139ed75fd2c0f1b30ca454d upstream.

When we use cmd8 as the tuning command in hs400 mode, the command
response sent back by some eMMC devices cannot be correctly sampled
by MTK eMMC controller at some weak sample timing. In this case,
command timeout error may occur. So we must receive the following
data to make sure the next cmd8 send correctly.

Signed-off-by: Mengqi Zhang <mengqi.zhang@mediatek.com>
Fixes: c4ac38c6539b ("mmc: mtk-sd: Add HS400 online tuning support")
Cc: stable@vger.stable.com
Link: https://lore.kernel.org/r/20240716013704.10578-1-mengqi.zhang@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/mtk-sd.c