All of lore.kernel.org
 help / color / mirror / Atom feed
* mmc_rescan failure in case of CONFIG_MMC_UNSAFE_RESUME
@ 2011-02-12  0:33 Dmitry Shmidt
  2011-02-12 17:22 ` Chris Ball
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Shmidt @ 2011-02-12  0:33 UTC (permalink / raw)
  To: linux-mmc

Hello,

Recently new check was added to core.c function mmc_rescan():
    if (host->bus_ops && host->bus_ops->detect && !host->bus_dead
        && mmc_card_is_removable(host)) <<<< This one
        host->bus_ops->detect(host);
mmc_card_is_removable() is checking
 !(host->caps & MMC_CAP_NONREMOVABLE) && mmc_assume_removable;

If we use CONFIG_MMC_UNSAFE_RESUME then
  mmc_assume_removable will be 0 and any card will be always considered
as non-removable. And host->bus_ops->detect() will not be called on card
removal.

Am I missing something?
Thanks,

Dmitry


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-16 17:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-12  0:33 mmc_rescan failure in case of CONFIG_MMC_UNSAFE_RESUME Dmitry Shmidt
2011-02-12 17:22 ` Chris Ball
2011-02-14 19:04   ` Dmitry Shmidt
2011-02-14 19:40     ` Chris Ball
2011-02-14 21:54       ` Dmitry Shmidt
2011-02-15 18:06         ` Dmitry Shmidt
2011-02-16 17:37           ` Dmitry Shmidt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.