• Raul E Rangel's avatar
    mmc: sdhci: Check card status after reset · dcaac3f7
    Raul E Rangel authored
    
    
    In sdhci_do_reset we call the reset callback which is typically
    sdhci_reset. sdhci_reset can wait for up to 100ms waiting for the
    controller to reset. If SDHCI_RESET_ALL was passed as the flag, the
    controller will clear the IRQ mask. If during that 100ms the card is
    removed there is no notification to the MMC system that the card was
    removed. So from the drivers point of view the card is always present.
    
    By making sdhci_reinit compare the present state it can schedule a
    rescan if the card was removed while a reset was in progress.
    Signed-off-by: default avatarRaul E Rangel <rrangel@chromium.org>
    Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
    Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
    dcaac3f7
sdhci.c 115 KB