summaryrefslogtreecommitdiff
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorShridhar Rasal <srasal@nvidia.com>2012-02-07 21:02:47 +0530
committerSimone Willett <swillett@nvidia.com>2012-02-09 16:05:26 -0800
commit90c7ef70d1cd95d73d8e860209b06b1d0bae2c2f (patch)
tree7bdb11bac85880abc365cdd1e701b7e011cf3d09 /include/linux/mmc
parentfaaa975f6ff8719b2f1f2d3fa7bd69066362a171 (diff)
mmc: sdhci: quirk for not calculate max_discard_to
Adding SDHCI_QUIRK_NO_CALC_MAX_DISCARD_TO for not to calculate max_discard_to which is deviation in setting max_discard. For some host controllers, combination of 1) calculated non-zero value of max_discard_to and 2) erase_group_def not set can result into setting max_discard value to pref_erase in sectors which is very less, so it takes long time for erase. With this change host controller can specify to calculate max_discard_to and based on that max_discard value will be set. bug 930767 Change-Id: I2c64ef8a6821620f2a65c06e25d2af68e3554a75 Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-on: http://git-master/r/79839 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/sdhci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/sdhci.h b/include/linux/mmc/sdhci.h
index 19abccaf0fb0..061f70ec01f9 100644
--- a/include/linux/mmc/sdhci.h
+++ b/include/linux/mmc/sdhci.h
@@ -91,6 +91,8 @@ struct sdhci_host {
#define SDHCI_QUIRK_NON_STD_VOLTAGE_SWITCHING (1ULL<<32)
/* Controller doesn't follow the standard frequency tuning procedure */
#define SDHCI_QUIRK_NON_STANDARD_TUNING (1LL<<33)
+/* Controller doesn't calculate max_discard_to */
+#define SDHCI_QUIRK_NO_CALC_MAX_DISCARD_TO (1LL<<34)
int irq; /* Device IRQ */
void __iomem *ioaddr; /* Mapped address */