From patchwork Mon Apr 6 11:37:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 185216 Delivered-To: patches@linaro.org Received: by 2002:a92:de47:0:0:0:0:0 with SMTP id e7csp3547421ilr; Mon, 6 Apr 2020 04:37:29 -0700 (PDT) X-Received: by 2002:a19:4b90:: with SMTP id y138mr12522332lfa.39.1586173049215; Mon, 06 Apr 2020 04:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586173049; cv=none; d=google.com; s=arc-20160816; b=ujnW/iPt3MZ/B9kc5VPKOtwKVwnusFnVk4rDioWFuQ0ujN7awsyYKsLaFsQlxcS+/3 fUipZ0hUE/k4cSZLxifeuTI6NdS7aFK4/hTLJcaxjjav0+hsfF4RZ6WfPT0Mb9q59894 DPXGLbum3rABWPTvsbJJ/pQGyU8Nr2iKPv4AkCjWPtJzVFnUpQ5iNurJjBtma7fa2RHz 7npA82EqEGppcq3PJ+m7P0B9M9UqY563HQCTemGIhTz5shPmIK/Dyg1Nkq98gvCtuKZd 37stXIgG+uGNuoBzdStBR5B4z8zbLoUbSzE46MD3R64h/5by1+1ZDUnFHPon2rFg9GsW 91Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=jomYwKtC32wMHbYmj9/ewVW7gsvr/quou2UrF91WBT4=; b=L92b8vvcmnK3Ub2DEXidf8O8zk0zl0BvBKoBPRlzGtpk5E0tPwKvPbG2A93Wyptujz OoHnvBvkuvSYjb3/4eZ1rQNnjDGAGoK10Yw55M92rNqfRa0SOhj1V7gnY3X21uiMdZPL sZqyODWduBdU01ODDF4PB644Ro3m/53KfJipGorbMMVCD7XTgAgP3T7CXpR40kSZ1c/u 7WTgBnBxrJlZAYMewcKBevtgzoeMOi1f0LHX9DENwmZtUOxowBetd+XKJIC3s8HKvLMk qLcrP3eQVAlQL3xiPw3sXTLWbqLNO01lXW6KNJKh2+vq/b4C8SvNDmdg5JSQqq0eV3dX mYUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P2T3JWKE; 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 v14sor5901997lfg.44.2020.04.06.04.37.29 for (Google Transport Security); Mon, 06 Apr 2020 04:37:29 -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=P2T3JWKE; 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:mime-version :content-transfer-encoding; bh=jomYwKtC32wMHbYmj9/ewVW7gsvr/quou2UrF91WBT4=; b=P2T3JWKEiJgGoNNqCbtSuA8+FRYokJOvQcCnrgVj91hvkGOvlGBCowOSg5TajUlGZJ Im0vR8guzN2oSr6IX/VWQ5J/nyyo9fRJLhBZq09RwOJJoH7UwmXY6aaakf0eSBTKHOFf cFx2dHukRL+BkI+ODNSrvYtmn0YmyGZ9IwocDSqOknWVmIFmMDmcZgOd5T4REHJNf/38 G52yO38AwasF0NMvfJcSzI0UEUHzeZInOdJNzFshbbmC/VysjW/irUBDqQjWAJHpP1C+ IyMkJeKh2bU9g8L1yc7HLjVAuqcENk9cm6xXYcW8rttlqEa7bhwuCYLlFdFlPlUF9A9f oGug== 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:mime-version :content-transfer-encoding; bh=jomYwKtC32wMHbYmj9/ewVW7gsvr/quou2UrF91WBT4=; b=mymynKh8+ITkBN/rjHJddhJr0ZMedEDQMyssBKUQwpL5NtIGpgUbyHmJ7Giz4a9BbF F9YOL8Be/IRIiAa6LPOfdGalrHYwcCJDUDnovZ63gby7IRY5eo/vp9jS3GH/wBvviLAq g2G1guK00tmYlNt/VvvQNaPzXprxY2f0tdEqlT2oflTtLYcNCsAO7UvZKuVhHnjWmCPo XTt+TFmyhUpn8vlixzFER8BbsCnPP30usU0KTE0Nopj7MW+l+ZQn1PTkMNe0GaHx41/m zPxwAnbaZvMjdg3fFUe9/Ft5LFJcomzOBxOoKW/KETe5lx4jJJZYmOaAciIgOeT31Pnr 4mOw== X-Gm-Message-State: AGi0PuY3zQ+xu9X9se9agtzIq0fgQUXgrbHqeosPrUvTUsJLxkm/YZL1 XBYaLYnEHySbAd8pkvxsD3eoZHwp X-Google-Smtp-Source: APiQypKbpd+srlD1TbCF9VLQ7IjyZ3dGBlzEnxmyb/indWWR1O+wMhyGbCHcndqPQdBvP99zQLC5YQ== X-Received: by 2002:a2e:9c01:: with SMTP id s1mr7585732lji.175.1586173048791; Mon, 06 Apr 2020 04:37:28 -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 y12sm11982072ljk.18.2020.04.06.04.37.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2020 04:37:27 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter Cc: Baolin Wang , Chunyan Zhang Subject: [PATCH] mmc: sdhci-sprd: Drop redundant cap flags Date: Mon, 6 Apr 2020 13:37:24 +0200 Message-Id: <20200406113724.8504-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 The MMC_CAP_ERASE and MMC_CAP_CMD23 flags are already being set in the common sdhci_setup_host(). This makes it redundant to set them for sdhci-sprd, so let's drop them. Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdhci-sprd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.20.1 Reviewed-by: Baolin Wang diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c index 2ab42c59e4f8..60c3a4c620f9 100644 --- a/drivers/mmc/host/sdhci-sprd.c +++ b/drivers/mmc/host/sdhci-sprd.c @@ -556,7 +556,8 @@ static int sdhci_sprd_probe(struct platform_device *pdev) sdhci_sprd_voltage_switch; host->mmc->caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED | - MMC_CAP_ERASE | MMC_CAP_CMD23 | MMC_CAP_WAIT_WHILE_BUSY; + MMC_CAP_WAIT_WHILE_BUSY; + ret = mmc_of_parse(host->mmc); if (ret) goto pltfm_free;