mmc_rescan failure in case of CONFIG_MMC_UNSAFE_RESUME

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux