• Aaron Lu's avatar
    mmc: core: reset signal voltage on power up · 108ecc4c
    Aaron Lu authored
    Add a call to mmc_set_signal_voltage() to set signal voltage to 3.3v in
    mmc_power_up so that we do not need to touch signal voltage setting in
    mmc/sd/sdio init functions and rescan function.
    
    For mmc/sd cards, when doing a suspend/resume cycle, consider the unsafe
    resume case, the card will lose its power and when powered on again, we
    will set signal voltage to 3.3v in mmc_power_up before its resume function
    gets called, which will re-init the card.
    
    And for sdio cards, when doing a suspend/resume cycle, consider the unsafe
    resume case, the card will either lose its power or not depending on if it
    wants to wakeup the host. If power is not maintained, it is the same case as
    mmc/sd cards. If power is maintained, mmc_power_up will not be called and
    the card's signal voltage will remain at the last setting.
    Signed-off-by: default avatarAaron Lu <aaron.lu@amd.com>
    Tested-by: default avatarVenkatraman S <svenkatr@ti.com>
    Signed-off-by: default avatarChris Ball <cjb@laptop.org>
    108ecc4c
mmc.c 38.4 KB