]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: skip detection of nonremovable cards on rescan
authorOhad Ben-Cohen <ohad@wizery.com>
Sun, 28 Nov 2010 05:21:28 +0000 (07:21 +0200)
committerChris Ball <cjb@laptop.org>
Sun, 9 Jan 2011 03:48:04 +0000 (22:48 -0500)
commit8b0a4b7e4770e8bdc047d646b09d7f3bf6e4bd3f
treee2abf06a8dbb1cd83d8eeefcaa65440861218dc9
parentb8b4e7ef612f15c9c294fd63d609920fd91341b1
mmc: skip detection of nonremovable cards on rescan

mmc_rescan() checks whether registered cards are still present before
skipping them, by calling the bus-specific ->detect() handler.

With buses that support runtime PM, the card may be powered off at
this point, so they need to be powered on and fully reinitialized before
->detect() executes.

This whole process is redundant with nonremovable cards; in those cases,
we can safely skip calling ->detect() and implicitly assume its success.

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