]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Remove MMC_CAP2_HC_ERASE_SZ
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 8 Jun 2017 13:23:08 +0000 (15:23 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:48 +0000 (10:30 +0200)
commite5f1819aa395b3c11a3e8a5b0594e14d07631b8c
tree5d80b5da3796d378c25d9aae4376a156857d0ccf
parent04607b24c24e6b1b0a62c3c15604c5f400da8381
mmc: core: Remove MMC_CAP2_HC_ERASE_SZ

The MMC_CAP2_HC_ERASE_SZ is used only by a few mmc host drivers. Its intent
is to enable eMMC's high-capacity erase size, as to improve the behaviour
of the erase operations.

We should strive to avoid software configuration options that aren't
necessary, but instead deploy common behaviours. For these reasons, let's
remove the capability bit for MMC_CAP2_HC_ERASE_SZ and make it the default
behaviour.

Note that this change doesn't affect eMMCs supporting trim/discard, because
these commands operates on sectors and takes precedence over erase
commands.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Tested-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/mmc/core/mmc.c
drivers/mmc/host/sdhci-acpi.c
drivers/mmc/host/sdhci-brcmstb.c
drivers/mmc/host/sdhci-pci-core.c
include/linux/mmc/host.h