Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5097335ybf; Wed, 4 Mar 2020 17:17:34 -0800 (PST) X-Google-Smtp-Source: ADFU+vu1N9zT748evte4bVldUNAwBpE8eN67YIMDQ8H0OavLE5SQmeA3V+3P4H1C+m0rxEah7isB X-Received: by 2002:a9d:4783:: with SMTP id b3mr4498396otf.212.1583371054282; Wed, 04 Mar 2020 17:17:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583371054; cv=none; d=google.com; s=arc-20160816; b=gD56QgzmbEVqLqDzeLhal3NQvgakG3jAc3piT9FNNOCcRzILHyC3dbrxd+GTn7V71D TtfSN0uKw5/0mat8td2TpiircAHOf/xqrpT5Hr+Oz0ftKVRVJ2iUj2qqRCiM9nhYCByX ncAzFSXwqW5YWlEc6JmSsrgITvS3zWILebgFQ2M9SyTpfCbHPALZQFfm6YCiTYQ5VD8z aOgWLeLC32CRi5F4B3eyV2i5ttm8LZtAduJsYfcf3DV//JjDdijicCVm3fB3vTGcL/Zf s3Jfggol4HxCUaocT4xSJ3RJxjp/qdednZFCJ6NFZRbtM+Ko8EzBYeknl5UYmfjmRWGt WaMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sY0CZ7bX/TvtEb9RG2ruFM/a3w224Wrlm/HI6Fy2x74=; b=atch+19HNj2v/D3XeZ2RX52tjfWSbfN0txuXrMf4C4wMH8sf6qaaoVC1tbzsLUA+Of clwMD8SobhCMOR/HiKTuw75J0HEe9J1fP1N1HECxsBYB0hVlWZL9DtjUXDLIK6DlgDak Bb72nRO3rNSVuXcZDu5EKwcQCwLsuRl8IcpncfhUEGdsTZWRiRk4DtWw2j0l7WolpX53 iE1LIgmMwtt2Os1SuiRc7dI/pUTYYcWMDhN40dDGzeXGVP0NISrWN2J+NYHIU59avzMx T3jmovXkXsuFTErONg0jD88I9Ktc093UtVFPGefOq1fZ/XcuwE5vrt8/0Y036VBm/AjW PXmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eTLQWIpE; 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 q25si2227027oij.74.2020.03.04.17.17.22; Wed, 04 Mar 2020 17:17:34 -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=eTLQWIpE; 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 S1725830AbgCEBRA (ORCPT + 99 others); Wed, 4 Mar 2020 20:17:00 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:35779 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbgCEBRA (ORCPT ); Wed, 4 Mar 2020 20:17:00 -0500 Received: by mail-qt1-f193.google.com with SMTP id v15so2970479qto.2; Wed, 04 Mar 2020 17:16:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sY0CZ7bX/TvtEb9RG2ruFM/a3w224Wrlm/HI6Fy2x74=; b=eTLQWIpESCoR79GrNvW8NEfd8vIXr0eNjaxVx0zZ7YASgAocojIA8LvWOU7hxumFzR dLdRCzMlOyJcEPSq9OS9B2sv/YfjplxgkalhsgEF6mfxxWDcsoboywcnL2OSI4ggeqTL v61AWrZnlgyDkmNPV//HfvhcA6RGLmQ9OI8vgDV+Hbvcwn/TKuRS1FF3qsV/KCluUgv8 KrGLVEWZ7YthqYk+lAEo7x5mCrbkdA2mczV9b1XUvjyMBDEhq7fnqnaLr3HY/ZME8wns /4LEu77oeseLpj3QGsxAPsDY2V71J4RULKy9CvIXtYB4WTe4ULhQAbDS8H0nERulRUwO w1nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sY0CZ7bX/TvtEb9RG2ruFM/a3w224Wrlm/HI6Fy2x74=; b=Dm/OUia3XBxapjxt5GcXh9Njrh/iBEIOV03zb6k4YlkTZZ18JgPYtyuTzvIkdZCrHP p5kgO5LOABjOfF+aotGS4e2v24h5EhgH4Dd1uDHnk5dot5XtLwQSx86/rAB9VNyQLWyG Ixs8KsrHw2NpSsLYjLjvdUArkjJ4PsyrJP1We9OU4hwhYH6Bobej1KzAjGCCp5Qbzv8P hxCKi0owJ4CeqTHHE34BNHB1FLucuJF/UUmYI3eu53VRQVkhRXGKqIgywPPiX5NyFUk0 AtP9W4n5crDvnnSl8FFpxlBs5pFOa5XCs4XmAw3yJzUyiHEUeVlTdRZdfySdSMMpstFt ADrw== X-Gm-Message-State: ANhLgQ1Dd6LyrSdO409YBh2kxiU8AeLlRv9qL/X/YZlmyloVpKs5Atj8 r1BS7kLfUb6xNdrizbUrdzanN8+22piC2XEYsQw= X-Received: by 2002:ac8:7cb0:: with SMTP id z16mr510747qtv.276.1583371019304; Wed, 04 Mar 2020 17:16:59 -0800 (PST) MIME-Version: 1.0 References: <96f16647f6a6e8cb058c44e46c61b122df027059.1582535202.git.baolin.wang7@gmail.com> In-Reply-To: From: Baolin Wang Date: Thu, 5 Mar 2020 09:16:47 +0800 Message-ID: Subject: Re: [PATCH] mmc: host: sdhci-sprd: Set the missing MMC_CAP_WAIT_WHILE_BUSY flag To: Ulf Hansson Cc: Adrian Hunter , Orson Zhai , Chunyan Zhang , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ulf, On Wed, Mar 4, 2020 at 11:35 PM Ulf Hansson wrote: > > On Mon, 24 Feb 2020 at 10:09, Baolin Wang wrote: > > > > The Spreadtrum host controller supports HW busy detection for I/O > > operations, which means when the host gets a transfer complete event, > > I assume HW busy detection also works for R1B commands, so I am adding > that information to changelog to clarify this. > > Please have a look at the next branch to see that it looks good to you. Looks good to me. Thanks for your help. > > > 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 > > So, applied for next, thanks! > > Kind regards > Uffe > > > > --- > > 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 > > -- Baolin Wang