]> rtime.felk.cvut.cz Git - linux-imx.git/commit
mmc: sdhci: poll for card even when card is logically unremovable
authorDaniel Drake <dsd@laptop.org>
Thu, 5 Jul 2012 21:06:13 +0000 (22:06 +0100)
committerChris Ball <cjb@laptop.org>
Sun, 22 Jul 2012 19:25:49 +0000 (15:25 -0400)
commiteb6d5ae1c918cefbfe06f6f96e1a75f2179d82ce
tree6bff8547528ff98654b63cbc21740f458c349bcf
parent973905feab85416784f36cc94b868392fd465ef4
mmc: sdhci: poll for card even when card is logically unremovable

The Marvell CaFe is now marked as having bad card detection to fix
a problem during system resume.

Now on the OLPC XO-1 we are facing the issue that the card is marked
as logically unremovable (via MMC_UNSAFE_RESUME), which means that
mmc_card_is_removable considers the card non-removable. The existing
code logic decides not to poll for card presence in this case, and
card detection is also disabled because of the quirk being set.
This means that no SD cards are detected when inserted after boot.

Refine the logic to enable card presence polling in the case when
a card is logically unremovable, only avoiding the poll in the case
when the card is physically non-removable (denoted with
MMC_CAP_NONREMOVABLE).

Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c