From patchwork Wed May 2 12:10:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 134827 Delivered-To: patches@linaro.org Received: by 10.46.151.6 with SMTP id r6csp609244lji; Wed, 2 May 2018 05:10:44 -0700 (PDT) X-Received: by 2002:a19:2902:: with SMTP id p2-v6mr10650982lfp.99.1525263044031; Wed, 02 May 2018 05:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525263044; cv=none; d=google.com; s=arc-20160816; b=NSYmMpQS6eJwhlfnakfhjD+bHRK5fwM/S7DKdC6xXF07XjF83RhHRGsOD3w41nwZHe tHUCy+w4sA9hX3+FH2mvQScubb25DGHPLye4cHn8IkKfctfiMvEyEcOGpmdYcby2R2Ns 7eOmsCbq6nTXZFZDLDeNwBZG/122gb2Q+yeo687p+goQHBXHIkUrRmp4y2+dgcIDceR9 DBhW71Wh4or7XRXu9t36VFQDMXThTZp9sETKGF82pKTOx4OHo4ype6hOyk4db/YdUJru di4SW+chHiR+4roKNnMsSk6tIzEOOb2aDvAsIuGblH/h7iUqMVUzmJUCCDzgjbgUMZcx FQ7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=IXJhm6sSpiNmfzylmZvl4gNbjXrqMo1n18Ut9JLV+VY=; b=lhFc7bS3kRxji1xt4gnehRLn6nB4J+NlS43pLWSfmVe9ESXrnYtnayuBkRJPjPQoAV g+54HYiENhPMcsT3OtBr/e2p/kkQNHzJtKJemPxMy2fglSSYnyOA3kcJ+ci48uAa6QB+ 20dVoqmlorGacHcn4AelHkX+ulrPj9JElOtSFr6t/CHaxuO+X7RIXE6pnE92jteLZQmj Uh0qU2N/MeO9U/K6mrPjAf+lN0dUjK9JVkkmwhG1j6mqDGOPhITvaUxE4uSuXpOJcn3N s3KmlgxeYCnGyvnoXeqs5hGZ/pYjAyNxbcvHyDTnCKAZXT9pMHfBoHDyX3JtJL1oB4PZ 3wSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DZ4hREvx; 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 t135-v6sor2340361lff.87.2018.05.02.05.10.43 for (Google Transport Security); Wed, 02 May 2018 05:10:44 -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=DZ4hREvx; 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; bh=IXJhm6sSpiNmfzylmZvl4gNbjXrqMo1n18Ut9JLV+VY=; b=DZ4hREvxFZTI7TfHSc+cUqhLe8ZpXmgQqgMJqOGVmtFpeB2hgg5cczjeVANL3cT78z /Ra31m+cZ66lREeqOHqEgkx+1EfS+z6cBIsXFXeLN5kq0NPDKlfCOZO+3yhkwXOFDHXG gHJPqtfJCNvK4AbwuPtgf/fn9WyQd8qMcL8h8= 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; bh=IXJhm6sSpiNmfzylmZvl4gNbjXrqMo1n18Ut9JLV+VY=; b=YTTRZzP9mCGnzxRDcg8ULqGvp67o0ZAqJbbzhhRzHnQatk/OgF7EM6hIMcysrUNftT +H3ZG1Fd1NhVYF3pEDCYEvJQ3v1sfIY+yOy10omqYdnfaQDQXbed7+rCXWWDgl1+jbDj TmxWrBmebpG8vZxGBLjY7KGDlWFUY/eKcGh68mOySDCaXeB5EnP9W/S1yVQDFG8UVbxp UxGADWopT1N+3QsFNKBVfrclZfMd7kp5M+5GC7EeTK0rHW5f/iXewPRbodEiouMpP5YM c5+S4gO3F8PNApQPUmyHnwUptKlQmuqEOD0KLDoUzSDIdUxHd7qVVc7wgAGPpYyC0vN9 YvVA== X-Gm-Message-State: ALQs6tB4RkWv0VhYXE/mPz73E4DxP4pIMWKDpgelg1rW6ptV1hVin79e 40xMmw4/yPVajQ8c5HKA9k8/5j59 X-Google-Smtp-Source: AB8JxZoe4vAaIjKyIK5DQtKrZsJd3eKZzU1H0d0yuAjOZ1yrCR1FlgN2oQQtvXXOLoxsvGmwlIO9Uw== X-Received: by 2002:a19:1895:: with SMTP id 21-v6mr11405274lfy.39.1525263043759; Wed, 02 May 2018 05:10:43 -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.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 May 2018 05:10:43 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: michal.pecio@gmail.com Subject: [PATCH 1/3] mmc: rtsx_usb: Use MMC_CAP2_NO_SDIO Date: Wed, 2 May 2018 14:10:35 +0200 Message-Id: <1525263037-16996-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 Instead of having to return -EINVAL when requested to send SDIO specific commands, let's set MMC_CAP2_NO_SDIO as it completely prevents them. Signed-off-by: Ulf Hansson --- drivers/mmc/host/rtsx_usb_sdmmc.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) -- 2.7.4 diff --git a/drivers/mmc/host/rtsx_usb_sdmmc.c b/drivers/mmc/host/rtsx_usb_sdmmc.c index 7842207..f9faa98 100644 --- a/drivers/mmc/host/rtsx_usb_sdmmc.c +++ b/drivers/mmc/host/rtsx_usb_sdmmc.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -839,17 +838,6 @@ static void sdmmc_request(struct mmc_host *mmc, struct mmc_request *mrq) goto finish_detect_card; } - /* - * Reject SDIO CMDs to speed up card identification - * since unsupported - */ - if (cmd->opcode == SD_IO_SEND_OP_COND || - cmd->opcode == SD_IO_RW_DIRECT || - cmd->opcode == SD_IO_RW_EXTENDED) { - cmd->error = -EINVAL; - goto finish; - } - mutex_lock(&ucr->dev_mutex); mutex_lock(&host->host_mutex); @@ -1333,7 +1321,8 @@ static void rtsx_usb_init_host(struct rtsx_usb_sdmmc *host) 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->caps2 = MMC_CAP2_NO_PRESCAN_POWERUP | MMC_CAP2_FULL_PWR_CYCLE; + mmc->caps2 = MMC_CAP2_NO_PRESCAN_POWERUP | MMC_CAP2_FULL_PWR_CYCLE | + MMC_CAP2_NO_SDIO; mmc->max_current_330 = 400; mmc->max_current_180 = 800; From patchwork Wed May 2 12:10:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 134828 Delivered-To: patches@linaro.org Received: by 10.46.151.6 with SMTP id r6csp609257lji; Wed, 2 May 2018 05:10:45 -0700 (PDT) X-Received: by 2002:a19:9915:: with SMTP id b21-v6mr12408400lfe.146.1525263045381; Wed, 02 May 2018 05:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525263045; cv=none; d=google.com; s=arc-20160816; b=AHYXfsVO5IaSIhkyuX8xm1L1LhWpxjPL3hp5m+BFn+9Tl1DUgThYUnECYQ1P/HizYG erY5kAa6kvc+CjZ+0E9skht9AO4WAEmhIZnZl0X33wVDkPhHNZ0GYnIOI0hh0IItlcTI y/+8d5/bkVXk7Uh2IR5/jHxShbv7HJ4+Q1DB5S4GbFOROQpmaM6crogJWU7RC1c1Ld3n urnw1kLremRNnEyygjCufHHgite71UbfJPTLA2FtJN9ua2zDV5QBuhxA3rARgXI0B79W 1UsCPnpzPEWQahWwETynFZyYPX1o7NTgeIhWIWMcyRdIzNFwu5fnSB8eoY5a4XGe0vm3 XqFw== 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=S+V4poVcuaiggcd1Y1cRrpx7Yk+BrvzxVKhQ/goVP7c=; b=wQHBhq/92d89zdYBEywNVDcvwGE+cYMl3cMeZinML21UMSLeQdv3pvTqmMU4cY7iAm DXupKa06BVMxxAjWp6oIEqDGrZej+guumjKJ8T2ihBLhwaQ2GDyRb8lOoXYFozfD7gED ZVaoBZcBx1hWGAYQkAvhN8lYExwIjNn2Fp/v8bI2Co9gQX3mjs2QSZoMrDnLQUAYat5i Z+lFpH9bgTFvZM9UZL+lZPWBf1ZJpRxXB7H5jQpYZa2ZwDEtwjO7abk1YojESGGJuFgD P/rpUfz/SIjS8nr7iDuoZ2AzooKzKdBUfyg5tG9T2zYHSl4D3uaGfQr2HTOCMMqMFDsn peug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OL9ITKMr; 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 f64-v6sor2322582lfg.19.2018.05.02.05.10.45 for (Google Transport Security); Wed, 02 May 2018 05:10:45 -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=OL9ITKMr; 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=S+V4poVcuaiggcd1Y1cRrpx7Yk+BrvzxVKhQ/goVP7c=; b=OL9ITKMrFnN0yGPJjmqn0QQwalMRHv+IaVkZYX99qPOxtKDCW2jIgFtW1rSLlvXQ+T uGk6Y7eqHHwKyzmijW+PoTTXzG0FMZFYZpZhtNs2WsENm7fhVHOX/I5I3FmKKoD0UXSx 4QfTjjh0/OLZ7IF3DsezUWZDCf18F36b+Qfps= 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=S+V4poVcuaiggcd1Y1cRrpx7Yk+BrvzxVKhQ/goVP7c=; b=VbnsYko9L2tEeVZy126uvyz/OOBN2lIgIgc3jxigPWi/01fHMAWjwmBv035AwpgxXc rsjbJ6a6kPu9d2bRxKfO1V/TOJgCIDUKjBLGJRANZji5fS5Oai4rtbHY1W2vPWURkPZM ni8e5G3rai5lONzfh3W5AIEVLuriYpoKx54ii8+c2d2E3y9VvAoD2lx7FZMRhj8lQMFG jspsWppktU4gSj59iU12r8u5diUqX6KkTgL5DDuNT+PgtSI19xXmCzfZ2cdVMwECd5gV m8jpdvscVFpuJFiGaRFTYTqP/zfW/XUK2XgBF0c7759xtDyG8HqfqHq5ED2WUZG49X0o NKFA== X-Gm-Message-State: ALQs6tDvIwGlDj2t/Zg4i8SMa4heGjVgq1FIfxHWTU1bPOXcPHqzK25H mUK1Al0BFVp/PalO4vRPiUeirbj8 X-Google-Smtp-Source: AB8JxZrZp2Am/caVPKYJL2eezFSRuW6EIq722yaZuGnKVkme1+HqnWDE1w3oXkOP+EIH7mMG+5zpKQ== X-Received: by 2002:a19:f612:: with SMTP id x18-v6mr9574715lfe.60.1525263045156; Wed, 02 May 2018 05:10:45 -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.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 May 2018 05:10:44 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: michal.pecio@gmail.com Subject: [PATCH 2/3] mmc: rtsx_usb: Use the provided busy timeout from the mmc core Date: Wed, 2 May 2018 14:10:36 +0200 Message-Id: <1525263037-16996-2-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> Instead of using a fixed 3s timeout for commands with R1B responses, convert to use the per request calculated busy timeout from the mmc core. This is needed to cope with requests that requires longer timeout, for example erase/discard commands. 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 f9faa98..560614c 100644 --- a/drivers/mmc/host/rtsx_usb_sdmmc.c +++ b/drivers/mmc/host/rtsx_usb_sdmmc.c @@ -342,7 +342,7 @@ static void sd_send_cmd_get_rsp(struct rtsx_usb_sdmmc *host, } if (rsp_type == SD_RSP_TYPE_R1b) - timeout = 3000; + timeout = cmd->busy_timeout ? cmd->busy_timeout : 3000; if (cmd->opcode == SD_SWITCH_VOLTAGE) { err = rtsx_usb_write_register(ucr, SD_BUS_STAT, 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;