diff options
author | Jorg Schummer <ext-jorg.2.schummer@nokia.com> | 2009-03-31 17:51:21 +0300 |
---|---|---|
committer | Pierre Ossman <pierre@ossman.eu> | 2009-06-13 22:42:56 +0200 |
commit | 94d89efb2c347a82a08a61dbac8565b1087c3259 (patch) | |
tree | 78e4cfaec79e4ae6346635d859f4d1501dd7e0e7 /drivers/dio | |
parent | f3ad116588151b3371ae4e092290e4f48e62b8bb (diff) |
mmc: mmc_rescan detects card change in one run
With this patch, mmc_rescan can detect the removal of an mmc card and
the insertion of (possibly another) card in the same run. This means
that a card change can be detected without having to call
mmc_detect_change multiple times.
This change generalises the core such that it can be easily used by
hosts which provide a mechanism to detect only the presence of a card
reader cover, which has to be taken off in order to insert a card. Other
hosts ("card detect" or "MMC_CAP_NEEDS_POLL") each receive an event when
a card is removed and when a card is inserted, so it is sufficient for
them if mmc_rescan handles only one event at a time. "Cover detect"
hosts, however, only receive events about the cover status. This means
that between 2 subsequent events, both a card removal and a card
insertion can occur. In this case, the pre-patch version of mmc_rescan
would only detect the removal of the previous card but not the insertion
of the new card.
Signed-off-by: Jorg Schummer <ext-jorg.2.schummer@nokia.com>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
Diffstat (limited to 'drivers/dio')
0 files changed, 0 insertions, 0 deletions