mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mmc: dw_mmc: set to MMC_CAP_ERASE by default
This flag needs to use the trim/discard/erase commands. dwmmc controller enables this flag by default. Signed-off-by: Jaehoon Chung <[email protected]> Reviewed-by: Shawn Lin <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
parent
6ae3e537ea
commit
6024e16654
1 changed files with 6 additions and 0 deletions
|
|
@ -2604,6 +2604,12 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
|
|||
if (host->pdata->caps)
|
||||
mmc->caps = host->pdata->caps;
|
||||
|
||||
/*
|
||||
* Support MMC_CAP_ERASE by default.
|
||||
* It needs to use trim/discard/erase commands.
|
||||
*/
|
||||
mmc->caps |= MMC_CAP_ERASE;
|
||||
|
||||
if (host->pdata->pm_caps)
|
||||
mmc->pm_caps = host->pdata->pm_caps;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue