diff options
author | Andrei Warkentin <andreiw@motorola.com> | 2011-05-23 16:06:36 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-05-25 16:48:46 -0400 |
commit | d0c97cfb81ebc5b416c0f92fa2fc18d2773e3023 (patch) | |
tree | dbf0fa49bdad896d283a7f392c156483d9687d4b /include/linux/mmc/host.h | |
parent | c59de9287993b5c36f9005f745a3ce0b1008131d (diff) |
mmc: core: Use CMD23 for multiblock transfers when we can.
CMD23-prefixed instead of open-ended multiblock transfers
have a performance advantage on some MMC cards.
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc/host.h')
-rw-r--r-- | include/linux/mmc/host.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index de32e6aa018a..e946bd10fe3f 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
@@ -210,6 +210,7 @@ struct mmc_host { | |||
210 | #define MMC_CAP_MAX_CURRENT_400 (1 << 27) /* Host max current limit is 400mA */ | 210 | #define MMC_CAP_MAX_CURRENT_400 (1 << 27) /* Host max current limit is 400mA */ |
211 | #define MMC_CAP_MAX_CURRENT_600 (1 << 28) /* Host max current limit is 600mA */ | 211 | #define MMC_CAP_MAX_CURRENT_600 (1 << 28) /* Host max current limit is 600mA */ |
212 | #define MMC_CAP_MAX_CURRENT_800 (1 << 29) /* Host max current limit is 800mA */ | 212 | #define MMC_CAP_MAX_CURRENT_800 (1 << 29) /* Host max current limit is 800mA */ |
213 | #define MMC_CAP_CMD23 (1 << 30) /* CMD23 supported. */ | ||
213 | 214 | ||
214 | mmc_pm_flag_t pm_caps; /* supported pm features */ | 215 | mmc_pm_flag_t pm_caps; /* supported pm features */ |
215 | 216 | ||
@@ -366,5 +367,10 @@ static inline int mmc_card_wake_sdio_irq(struct mmc_host *host) | |||
366 | { | 367 | { |
367 | return host->pm_flags & MMC_PM_WAKE_SDIO_IRQ; | 368 | return host->pm_flags & MMC_PM_WAKE_SDIO_IRQ; |
368 | } | 369 | } |
370 | |||
371 | static inline int mmc_host_cmd23(struct mmc_host *host) | ||
372 | { | ||
373 | return host->caps & MMC_CAP_CMD23; | ||
374 | } | ||
369 | #endif | 375 | #endif |
370 | 376 | ||