Skip to content
Commit 807e8e40 authored by Andy Ross's avatar Andy Ross Committed by Chris Ball
Browse files

mmc: Fix sd/sdio/mmc initialization frequency retries



Rewrite and clean up mmc_rescan() to properly retry frequencies lower
than 400kHz.  Failures can happen both in sd_send_* calls and
mmc_attach_*.  Break out "mmc_rescan_try_freq" from the frequency
selection loop.  Symmetrize claim/release logic in mmc_attach_* API,
and move the sd_send_* calls there to make mmc_rescan easier to read.

Signed-off-by: default avatarAndy Ross <andy.ross@windriver.com>
Reviewed-and-Tested-by: default avatarHein Tibosch <hein_tibosch@yahoo.es>
Reviewed-by: default avatarChris Ball <cjb@laptop.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 08c82dfa
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