aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/core/sd_ops.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2016-06-03 09:08:52 -0700
committerUlf Hansson <ulf.hansson@linaro.org>2016-07-25 10:34:11 +0200
commitc6d8fd61c096e9f84c0bd0bc38ccf5856b76c772 (patch)
tree0f5a98a4eac903286a60ab680d143e444b857067 /drivers/mmc/core/sd_ops.h
parent7eb16493ecaa41ceeb448717ee2c59690cd9047f (diff)
mmc: Set pref erase size based on size
If available, eMMC stack uses HC_ERASE_GRP_SIZE as the preferred erase size. As some high capacity eMMC (64MB) reports this size to 512kB, the discard operations end up taking very long time. Improve the behaviour by instead calculating the preferred erase size based on the eMMC size. In this way the discard operations becomes faster. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> [Ulf: Updated changelog and improved comment in code] Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/sd_ops.h')
0 files changed, 0 insertions, 0 deletions