mmc: sdio: don't reinitialize nonremovable powered-resumed cards
authorOhad Ben-Cohen <ohad@wizery.com>
Sun, 28 Nov 2010 05:21:29 +0000 (07:21 +0200)
committerChris Ball <cjb@laptop.org>
Sun, 9 Jan 2011 03:48:17 +0000 (22:48 -0500)
commit080bc9774b6f1e3866747b18631bad26f47c22ce
tree07ac4d1539b75036083d8b3c499e213fcca09cc4
parente594573d790bd7e269f05955d316b88f7be0c14a
mmc: sdio: don't reinitialize nonremovable powered-resumed cards

Upon system resume, SDIO core must reinitialize cards that were
powered off during suspend.

If the card had its power kept during suspend (and thus it is
'powered-resumed'), SDIO core performs only a limited reinitializing,
mainly needed to make sure that the card wasn't removed/replaced.

If a __nonremovable__ card is powered-resumed, we can safely skip the
reinitializing phase.

Note: 9b966aa (mmc: sdio: fully reconfigure oldcard on resume) removed
the bus width reconfiguration since mmc_sdio_init_card already does it.
It is brought back now in case mmc_sdio_init_card is skipped.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sdio.c
include/linux/mmc/host.h