Skip to content
Commit c6d8fd61 authored by Gwendal Grignou's avatar Gwendal Grignou Committed by Ulf Hansson
Browse files

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: default avatarGwendal Grignou <gwendal@chromium.org>
[Ulf: Updated changelog and improved comment in code]
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 7eb16493
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment