summaryrefslogtreecommitdiff
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorShridhar Rasal <srasal@nvidia.com>2012-02-07 21:02:47 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 01:07:21 -0700
commit44387398546a58ac503fc422eedcdbf9a21bd9aa (patch)
tree957a70acedb8df40b7c517da392db6241a71d0be /include/linux/mmc
parent14a2485ec2c07bf46aa14be46b2a77cc6ff77901 (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> Rebase-Id: Ra9fba9c1554085f1b83733877621954f4d7fbf90
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 d2782e29db38..90845af9368e 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)
unsigned int quirks2; /* More deviations from spec. */