-
- Downloads
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:Andy Ross <andy.ross@windriver.com> Reviewed-and-Tested-by:
Hein Tibosch <hein_tibosch@yahoo.es> Reviewed-by:
Chris Ball <cjb@laptop.org> Signed-off-by:
Chris Ball <cjb@laptop.org>
Showing
- drivers/mmc/core/core.c 36 additions, 83 deletionsdrivers/mmc/core/core.c
- drivers/mmc/core/core.h 3 additions, 3 deletionsdrivers/mmc/core/core.h
- drivers/mmc/core/mmc.c 9 additions, 4 deletionsdrivers/mmc/core/mmc.c
- drivers/mmc/core/sd.c 8 additions, 3 deletionsdrivers/mmc/core/sd.c
- drivers/mmc/core/sdio.c 12 additions, 6 deletionsdrivers/mmc/core/sdio.c
Loading
Please register or sign in to comment