]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: renesas_sdhi: abort tuning when timeout detected
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 2 Jun 2021 07:34:35 +0000 (09:34 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 8 Jun 2021 12:34:27 +0000 (14:34 +0200)
commit443a27ddf9b84a26d468f77a7fb6a5caa86027a2
tree278d94f79700210ae37e8864f685281165cbb6fc
parent0bfb8ed727aafd784980161b5dae041075559fb9
mmc: renesas_sdhi: abort tuning when timeout detected

We have to bring the eMMC from sending-data state back to transfer state
once we detected a CRC error (timeout) during tuning. So, send a stop
command via mmc_abort_tuning().

Fixes: 7bc0ed67fa11 ("mmc: tmio: Add tuning support")
Reported-by Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20210602073435.5955-1-wsa+renesas@sang-engineering.com
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c