summaryrefslogtreecommitdiff
path: root/drivers/mmc/card/queue.h
diff options
context:
space:
mode:
authorSan Mehat <san@android.com>2008-12-03 10:22:59 -0800
committerArve Hjønnevåg <arve@android.com>2009-04-07 16:43:24 -0700
commit5ca694dfd981a371e9b18cdd4a89c002ffaccbc5 (patch)
tree550f17a494674515abd46ecc68e7932045b310bb /drivers/mmc/card/queue.h
parentbd8df907ee8e95143d1bb7ec01ee0e4b6f7e1b79 (diff)
mmc: mmcblk: Add new feature 'CONFIG_MMC_BLOCK_PARANOID_RESUME'
With this feature enabled, mmcblk will check the card-status before issuing a transaction *only* after being resumed. This protectes us from issuing transactions before the sdcard is ready (which can occur if the host driver deferrs mmc_resume_host() to reduce resume latency) Signed-off-by: San Mehat <san@android.com>
Diffstat (limited to 'drivers/mmc/card/queue.h')
-rw-r--r--drivers/mmc/card/queue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/card/queue.h b/drivers/mmc/card/queue.h
index 64e66e0d4994..4b11cf2adfa1 100644
--- a/drivers/mmc/card/queue.h
+++ b/drivers/mmc/card/queue.h
@@ -17,6 +17,9 @@ struct mmc_queue {
char *bounce_buf;
struct scatterlist *bounce_sg;
unsigned int bounce_sg_len;
+#ifdef CONFIG_MMC_BLOCK_PARANOID_RESUME
+ int check_status;
+#endif
};
extern int mmc_init_queue(struct mmc_queue *, struct mmc_card *, spinlock_t *);