Skip to content
Commit 031277d4 authored by Chaotian Jing's avatar Chaotian Jing Committed by Ulf Hansson
Browse files

mmc: core: fix dead loop of mmc_retune



When get a CRC error, start the mmc_retune, it will issue CMD19/CMD21
to do tune, assume there were 10 clock phase need to try, phase 0 to
phase 6 is ok, phase 7 to phase 9 is NG, we try it from 0 to 9, so
the last CMD19/CMD21 will get CRC error, host->need_retune was set and
cause mmc_retune was called, then dead loop of mmc_retune

Signed-off-by: default avatarChaotian Jing <chaotian.jing@mediatek.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Fixes: bd11e8bd

 ("mmc: core: Flag re-tuning is needed on CRC errors")
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent fd546ee6
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