From patchwork Thu May 31 10:38:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 137352 Delivered-To: patches@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp6422028lji; Thu, 31 May 2018 03:38:11 -0700 (PDT) X-Received: by 2002:a2e:4792:: with SMTP id u140-v6mr5024736lja.2.1527763091820; Thu, 31 May 2018 03:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527763091; cv=none; d=google.com; s=arc-20160816; b=yMG6owZRXcbXsLkTJPyNG4a2cXsqGFuWrC9Ef03uUY0qd3YmEDC6+y5jk9ahiPfUUO jhGk3iONJaHItCl6HcrNiri/kbiARuLJ52ZJXrM6PQ9JaRRH+G1UlN9H2bJEjTLBVFYU Sea7oaNcpGLEYZfYw6Cl4bRGGrP400+QJV16zQW0qEWJb0mKBFVqBhuBHlTww6zq1dEy jnrTYZNdOKFRPwQTp3E9knKYzeZwZBTr6N6IztF5awoJRLyoMEjwbmpZzbQJAfSVyhII CFuPiTPOXIU5RWB9n9MfoXkHfWIAAguuK/w2PCF5jBDGtyZi+OiiWpGkb9fs2+12Tc9x 2anA== 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=+JosVkpQnXVwRYL4/tTP1Q9FJk1jdDdnvMeIZVFLCG0=; b=tffmmJDzmFpu7kCwOSh2/zf0Y8/ELpRt63lOHcNbsC3FHw2ZTfH+e0RdphqNUcxmx7 TKBi2zZAEzYRu8PlkjNzakFFjAesqNvn0BJdJ5LfGfBa/qghpoAsZjNCwgG1/khQuOdF NLdYo4L8x/gooBo79JrwzdtcUfti3zdrd+IOXKNret5ZFNhQRukSyz+z0S+rGiFuRHN3 w/aP2Y4aPrFuQenTW9HAV1KnB/Mohk+OJ7Ggh4hhIpJPRVs16mLjhVcSho9XXQ044ZIw +u9ejuwVJrHShbyA+PeZm0bxB3H324yhWq01dkMdCPE9l4TkrA6m6vjzW8hrvcYQdZU/ 0cQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CVoh597c; 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 i25-v6sor449551lfb.5.2018.05.31.03.38.11 for (Google Transport Security); Thu, 31 May 2018 03:38:11 -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=CVoh597c; 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=+JosVkpQnXVwRYL4/tTP1Q9FJk1jdDdnvMeIZVFLCG0=; b=CVoh597cSJz2HUYOMXitDlpabKR0NlKuJgxlmtj6ajME7RkGzCzCLvpe7+6msQ8WGY jp5kWQ1aQ2OnA22BmJ8RbwE6CKv0l7+j3U2Mq17azxc0iMMcktpOUBqZo2iq2zX9DQVJ cUcBZho3LV0WgJKpTIe4fRBnj4faUQFRMC7IE= 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=+JosVkpQnXVwRYL4/tTP1Q9FJk1jdDdnvMeIZVFLCG0=; b=T06tm1nF+WfTaW/QRVbjcvBNdGPiAvp4TfBrqlERZSdH2vErV28YM6lfGHKHkLKiCi noNm1HmRGro6eyfl2tJDF24c/5GSztTJGFlTs1xLkdaiAeawgIzynO5yRWCAi61ys9Ls EcorbY0jGGLs9q5nFF5oH7af/xMcGadvjmlqFDIVT6eeuo89UrjW8+ypJUMyBu7eTR0y z55nXSjGkyPPY5NjxaQahD2jfZ8keI9bMOi1blldtv6kZU8AFrEZiK+SfCe4IJxHG89h CovyZCUZxcD9mVhH5RKRa3RGAdemA7ILh//jwxcwPNJnSAxZMXdyz6E8xPZOxdgtZ4NR PLSw== X-Gm-Message-State: ALKqPwdPSLbx2OqULS181IeFlz6uw9zXYpIZfJtHtWDs9q1W5MObnR+7 79WjLURs9pkQyoN1o9IHhJeWnWd0 X-Google-Smtp-Source: ADUXVKLehENfD8g6ZpODxEqUnvPx7B6oUe5mEQvg4jE+CBWGMnyo0gKTNutiwBt1MtdfrbUQ6/uQvg== X-Received: by 2002:a19:990f:: with SMTP id b15-v6mr3932273lfe.93.1527763091649; Thu, 31 May 2018 03:38:11 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id n191-v6sm4868025lfn.3.2018.05.31.03.38.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 03:38:11 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Damien Thebault Subject: [PATCH 2/2] mmc: mvsdio: Enable MMC_CAP_ERASE Date: Thu, 31 May 2018 12:38:06 +0200 Message-Id: <20180531103806.2674-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.0 There is no obvious reasons to why mvsdio shouldn't be able to support erase/trim/discard operations, hence let's set MMC_CAP_ERASE for it. Cc: Damien Thebault Signed-off-by: Ulf Hansson --- drivers/mmc/host/mvsdio.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.0 Tested-By: Damien Thébault diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c index 4c70829cffd7..e22bbff89c8d 100644 --- a/drivers/mmc/host/mvsdio.c +++ b/drivers/mmc/host/mvsdio.c @@ -757,6 +757,8 @@ static int mvsd_probe(struct platform_device *pdev) if (maxfreq) mmc->f_max = maxfreq; + mmc->caps |= MMC_CAP_ERASE; + spin_lock_init(&host->lock); host->base = devm_ioremap_resource(&pdev->dev, r);