Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2217130ybv; Mon, 24 Feb 2020 01:16:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxnljllJMIL7d0JZiPA60qyQyBDyFuqSDFgVb9tsQgnYoiNRr7uqHrrDGTGuUkcIqjO4aDx X-Received: by 2002:a9d:3bc4:: with SMTP id k62mr40639922otc.186.1582535776716; Mon, 24 Feb 2020 01:16:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582535776; cv=none; d=google.com; s=arc-20160816; b=dkGiu+Z/9zJgk8XwZPrWShO8FjmSsEDK4RdFBicbl57iboF+LJj1jHC04mBZFfHgKd fK0zwBfDbBMtJGTKhl4fr9hoVTiLeoeD45GxQ3ZUW5y5MDpqWdE8RANbgMmyjbXWzR5b MbATbp3dRaKzxDkJIOjEpTutF+PScGXUmVmskvhT2wgBxU3Y2qLnrE1mlVw5ZfSTu9KJ evV1v4WrjYxpZYbfPAphTYmVkPTNEIBqF5WV60T50tSRtSAaHzBHGxpivSs/hKJ0MU0L jZg/6TTFQFMCwi6uAYCbFsK8enoxIK4EqhuPs0unZr/xL+Dz33YqMMITnm+CW8RHMbrJ 1KQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=GajakFXyxMUa9GNvnGruzNckL7Z3CRJUy+Vqs4Yc4uI=; b=tm4x/wGO8b7AdaH82JRr7ni0uyMLqp1sKiWHkiGqN6JoKg0/Au8yadXNgnblcUYkTr wzQqA1Mhq4G/AD3SoElOoBDNNim95VGesq+2NoQO0LgY9MLcpu0B74Mrx3UINZrrpxAh hJVcQqny/fenR6ROly+4V/pvlzIe/5GzrYACXg35jD+IMN3VKyKwDD3wzUs4wbOST4WA XpHKY6vVNf2BXWeJ4w3z+erJYXqIP8xX0zQ+1rREwbgeqNJ76z3QFXjsJjQrQIMB2GX0 AF5mH6R4ti3EBAzjL/PzZcu+6xgpyrm0sKT0MQpclMDl1GnZ4iFUbsj4qyI3qy9UNOKa /1LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TVJhfUQo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si5610787otn.150.2020.02.24.01.16.03; Mon, 24 Feb 2020 01:16:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TVJhfUQo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727337AbgBXJJD (ORCPT + 99 others); Mon, 24 Feb 2020 04:09:03 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35913 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727307AbgBXJJB (ORCPT ); Mon, 24 Feb 2020 04:09:01 -0500 Received: by mail-pg1-f193.google.com with SMTP id d9so4813515pgu.3; Mon, 24 Feb 2020 01:09:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GajakFXyxMUa9GNvnGruzNckL7Z3CRJUy+Vqs4Yc4uI=; b=TVJhfUQoGV593qut6pCiS/bCkZgzc7RtJeAtWE9Uz5zqFFd/b42P0f30AVI6Im20JL 1tBQogDqHgVi7A5ig4oxX7GqP0XCnzhojJuQf5koMb6hCIn6do0B/LWBg04MQOBl5JX2 Y0bC36gaebvgxHMiGB3cb0z63mbBon8aauz9PipRLcZ/2sPgIx5+Yx7V3pFxiA23G0X7 Td5RIFboO9BnaKISaPlgxt6yyucrPy8EKg917V9LwjH4BziziPEYp6AXOTRKWJW1aqDW PdWOdKtS8owG/JSWK/VqeTd0pNUW8rEl92PNYpwTxhOhK2S/0JQo2my3V/E/J16PwJlp RwDQ== 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=GajakFXyxMUa9GNvnGruzNckL7Z3CRJUy+Vqs4Yc4uI=; b=juJwC3Gut22hji8QD8o6xPzxkAKTN3KbratDkA90E+BlrNybaMdjDbrcjWhvKlv7OA FJr5GCopPTVbpjBS7DbXlCHYLACwOzkTS6mmEAaKNiAoTEOZE5Y26Fr2jC9GiCafiHJt YjG3cr5qF5iDaagZ0JGE81ueZYihvA4kA0r4mspQcOmOkcaGEmo8YPwmyq3q8d6T18AR jhIWZ/IHp/XwvHVD8121h4DJ9DDnnl0L270FZDioUdUHBPtmuz+KgRS9yPRo2rcKW7q2 BZ6dTKfGmFvO2GS2ceYBA7on3t1vd5qalLjavbgEZcwNDwNLNzAeUPje3UQVrHUBfcyZ EeqQ== X-Gm-Message-State: APjAAAWkUQlgW5HIXJJvSDBSoAZxN3aWByYrowqZyDvMyYR4h6NGGnPa WBbOqqpFO6v8Rgr3Rtdt7vc= X-Received: by 2002:a62:1a09:: with SMTP id a9mr50691454pfa.64.1582535341020; Mon, 24 Feb 2020 01:09:01 -0800 (PST) Received: from sh03840pcu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id t17sm4521674pgn.94.2020.02.24.01.08.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Feb 2020 01:09:00 -0800 (PST) From: Baolin Wang To: adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, baolin.wang7@gmail.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: host: sdhci-sprd: Set the missing MMC_CAP_WAIT_WHILE_BUSY flag Date: Mon, 24 Feb 2020 17:08:49 +0800 Message-Id: <96f16647f6a6e8cb058c44e46c61b122df027059.1582535202.git.baolin.wang7@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Spreadtrum host controller supports HW busy detection for I/O operations, which means when the host gets a transfer complete event, that always indicates the busy signal is released. Thus we can set the MMC_CAP_WAIT_WHILE_BUSY flag to remove some redundant software busy polling. Signed-off-by: Baolin Wang --- drivers/mmc/host/sdhci-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c index d346223..2ab42c5 100644 --- a/drivers/mmc/host/sdhci-sprd.c +++ b/drivers/mmc/host/sdhci-sprd.c @@ -556,7 +556,7 @@ 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_ERASE | MMC_CAP_CMD23 | MMC_CAP_WAIT_WHILE_BUSY; ret = mmc_of_parse(host->mmc); if (ret) goto pltfm_free; -- 1.9.1