From patchwork Wed May 2 12:10:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 134829 Delivered-To: patches@linaro.org Received: by 10.46.151.6 with SMTP id r6csp609285lji; Wed, 2 May 2018 05:10:46 -0700 (PDT) X-Received: by 2002:a19:e48a:: with SMTP id x10-v6mr12228612lfi.115.1525263046593; Wed, 02 May 2018 05:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525263046; cv=none; d=google.com; s=arc-20160816; b=U8dSNfDdpLC33Kvx3E6NXaXtvwNP3ms+Q0M7QLhrIOmKGHNHXr7WYnoRznT6QBQCck FjpXX0G7ynPp+5m27MEdOiz+7Kk4nE+hEwqQ1X0dYT1Sc2WPIIiA28lVmYKC67NiqH66 d19B8C7D2RBldXJOwtPZgPC0RfxOZTmVduip9GE3W48KAnzEzLBi9vw5Gjln5hOlqGRb vgsfjctoq1dXuaFHgQcHoc+rEhnXEq9uo73W3Nu8TFAwm8liZcB2sgwh959shE6YRb8a PAOGK0bssS2A3/1hR1NupB1M9WnKgalF/Rque43MdozQJiXuofs9ifQqJbEsvZlfPS5W 6cjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=YPHLutIr7v8g+j9ng3/+C9DmC8RTgaskgHj4vC4wsH4=; b=NarVgQQ8umo0ir57XqJkgoG1wZvQhj7+sf5xcNx1CnIN17C9FO9JLyxHVNa8SOWU8i /Ev+cJ0FEQ5pstwywkA+SR9JayAlq/4nOb16lQfrpC3kNf5wuxZ5MeVRFJiyu+xeHqi8 PnWE1TCbRKnABMd/0gI8IJRHplU1XOQgs0kG47/pI4xXboDmHE+I3KaMYj4o7Ow8DMUd emcph6iQri8jST0NseqP+jEAUpESkQPZsBM9oVCl6ia2kBgYPsAjNhKDur5zh03RsCZk BEBpty3uFGDRqrPjLezAZLI00ngrbYbwA+pWpuUEqxWtzgVDzauzcttQOq8nwuTj2C1h aqGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WRrAQlgR; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id g17-v6sor1242729lfe.67.2018.05.02.05.10.46 for (Google Transport Security); Wed, 02 May 2018 05:10:46 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WRrAQlgR; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YPHLutIr7v8g+j9ng3/+C9DmC8RTgaskgHj4vC4wsH4=; b=WRrAQlgRN+9VOi+RoP1sJ/kmcOwzUqNU0LSdYGFNOtFGdbn0Y6a+SlaF68iACbm3+9 aQUFxiLi2vDRd48ghfCl7fQ3YMI3P/C/5XR0onG6sU+PD0oXsvnRKyZBCXCWdztU/7SR MFbnBUra/eJuIDA6P33q1rBt2iYMDIDfW3yHk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YPHLutIr7v8g+j9ng3/+C9DmC8RTgaskgHj4vC4wsH4=; b=r2P9BAtXSANJI9r02FWMddHHwP3niZXtJfG2d+kwAQgrZd+ofyt4J3S1S5H5/aO3QC gww3iQDP6w5yLk0ldUV91NJzgiMqaWgHlH5sB1UnU2BLGUs7vMNBRLYOPxuqJCZT5zfG HBB/Rs+2st0xEqL+/BwpZ5jh3PaeaCrGgvIXFJT+Xnj+jlKseejzUkF2gnoCh66uL9C3 AFa0H1DH8jkCNhXIkaScSfp8kc1td2IqxJ6lzrZzlnJgknoAwZsqTKQq9kWvuuOg9Wf8 FtWD1CvF25yoMisV1Nk406Tw1GUCkmQuqnfOH9TlnvGb3SiSlwKUdWguv2Vz++t/BxJb amNg== X-Gm-Message-State: ALQs6tBrdcFaURrAvnMDTwQKGOFDP49gUIVvp6BzGCNuRePLtzwy8TjQ kFxdfi5eP41gKWalWoGS8YHo2JUR X-Google-Smtp-Source: AB8JxZo6eopj0ahHNtzkVh3l8auqhABBTP/kNEj/Rw5Wa3O2oGLfDw9eurzuxghyuvt/pc5vUPWznA== X-Received: by 2002:a19:b2c9:: with SMTP id t70-v6mr12365848lfk.70.1525263046401; Wed, 02 May 2018 05:10:46 -0700 (PDT) Return-Path: Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id y23-v6sm1867526ljh.88.2018.05.02.05.10.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 May 2018 05:10:45 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: michal.pecio@gmail.com Subject: [PATCH 3/3] mmc: rtsx_usb: Enable MMC_CAP_ERASE to allow erase/discard/trim requests Date: Wed, 2 May 2018 14:10:37 +0200 Message-Id: <1525263037-16996-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525263037-16996-1-git-send-email-ulf.hansson@linaro.org> References: <1525263037-16996-1-git-send-email-ulf.hansson@linaro.org> Signed-off-by: Ulf Hansson --- drivers/mmc/host/rtsx_usb_sdmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/mmc/host/rtsx_usb_sdmmc.c b/drivers/mmc/host/rtsx_usb_sdmmc.c index 560614c..9a3ff22 100644 --- a/drivers/mmc/host/rtsx_usb_sdmmc.c +++ b/drivers/mmc/host/rtsx_usb_sdmmc.c @@ -1320,7 +1320,7 @@ static void rtsx_usb_init_host(struct rtsx_usb_sdmmc *host) mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED | MMC_CAP_BUS_WIDTH_TEST | MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25 | MMC_CAP_UHS_SDR50 | - MMC_CAP_NEEDS_POLL; + MMC_CAP_NEEDS_POLL | MMC_CAP_ERASE; mmc->caps2 = MMC_CAP2_NO_PRESCAN_POWERUP | MMC_CAP2_FULL_PWR_CYCLE | MMC_CAP2_NO_SDIO;