diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2007-02-11 14:43:19 -0500 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-01 07:04:17 -0400 |
commit | 3b91e5507cddaca53bccf1524ff11a0ac5c85531 (patch) | |
tree | 50d0df36aafa5b8f3a0abd5753457e50a3638041 /include/linux/mmc | |
parent | 1c6a0718f0bfdab0d9b7da5f7b74f38a0058c03a (diff) |
mmc: Flush pending detects on host removal
Make sure we kill of any pending detection runs when the host
is removed instead of when it is freed. Also add some debugging
to make sure the driver doesn't queue up more detection after it
has removed the host.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/host.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index c89f41091304..92efe8e5be7e 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
@@ -147,6 +147,9 @@ struct mmc_host { | |||
147 | struct mmc_card *card_selected; /* the selected MMC card */ | 147 | struct mmc_card *card_selected; /* the selected MMC card */ |
148 | 148 | ||
149 | struct delayed_work detect; | 149 | struct delayed_work detect; |
150 | #ifdef CONFIG_MMC_DEBUG | ||
151 | unsigned int removed:1; /* host is being removed */ | ||
152 | #endif | ||
150 | 153 | ||
151 | unsigned long private[0] ____cacheline_aligned; | 154 | unsigned long private[0] ____cacheline_aligned; |
152 | }; | 155 | }; |