On 15 July 2016 at 03:54, Jaehoon Chung <jh80.chung@xxxxxxxxxxx> wrote: > This flag needs to use the trim/discard/erase commands. > dwmmc controller enables this flag by default. > > Signed-off-by: Jaehoon Chung <jh80.chung@xxxxxxxxxxx> As we are close to the merge window, I picked this up directly instead of you having to send me a PR. Thanks, applied for next! Kind regards Uffe > --- > drivers/mmc/host/dw_mmc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c > index 9fab5ed..d16de19 100644 > --- a/drivers/mmc/host/dw_mmc.c > +++ b/drivers/mmc/host/dw_mmc.c > @@ -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; > > -- > 1.9.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html