Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp857484pja; Wed, 1 Apr 2020 09:56:50 -0700 (PDT) X-Google-Smtp-Source: ADFU+vupAgEAteadIPQo4vWhFtuyQIe2P3f3COXmYs5+WehQyjmm/Dga4Gj45cIRv8tv2dH9/90T X-Received: by 2002:a4a:9451:: with SMTP id j17mr17573560ooi.30.1585760210392; Wed, 01 Apr 2020 09:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585760210; cv=none; d=google.com; s=arc-20160816; b=gpefzzt3lHW9cxUYvZPbZXOzROLgpeKXD6pDqPzYstwp60wf/q2uMTXUEQEw6ez6hf qGVY/4yq3Z0h0yizAI6UTMPXzOU7IoUXCZeZTsV5R3bqIJgxxPnaUtx3H2LZYAjV/4a0 v2GnaHDwJd8oSU5wpFQ4JYeO6rZ8H3m5zIdhMwJEvKMKHHrSFkcfd2dYvFJixUvLyd2E rG2FoCwHqb1b77mMbmwWB6bo66/BuS4qIHa2mw3rrPSlfbMmd8vPJm9tubqVMIBKYXTo FrfuKO9txCj+4NZIdxbZbjMJ7cYuqIj9TnjqBQ9tLc78IaAp7Zr3zygnH+kETj1QxlxX 2Nqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yBC2KNmHwcNo1JFIJBpvGIFb3xhpgN8MuSw/zmUGX0s=; b=fmPg9Mb9X05O/Oej0mJ4W4A+la8aflZ9uqYKZN7bEQ9bpKsC2LVC1mK3hbfdQCAhNv s5MtX/aJSR7szt9y4PpfVQYlU4kAsOy/mQ4wY4ggngFRTfxJcqz/4s/izRF8uoWvZ1Z1 7exM05IHpWfXp/W0E2FS8as/3bHV0a+1bCiSQxo7H8FKbd2VG2RmezkZQacEXIYhDsak f1ngDzHYib81qkQblKe1/OMEmRH7VuWDf7fjAbIAFgoYu5TLYscKl2g2ArU8smuhPtNC t6VWNyh2lF5hWmgwzmWhVP67sUNExGkju+KOIZlpp3w7mxYYcvDXf/GLUMD7p+CPvrW4 GPmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="0/INsVn9"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si1165099otj.157.2020.04.01.09.56.38; Wed, 01 Apr 2020 09:56:50 -0700 (PDT) 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=@kernel.org header.s=default header.b="0/INsVn9"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733273AbgDAQYh (ORCPT + 99 others); Wed, 1 Apr 2020 12:24:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:48268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732888AbgDAQYd (ORCPT ); Wed, 1 Apr 2020 12:24:33 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A65D0214D8; Wed, 1 Apr 2020 16:24:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585758273; bh=mZBgjR/pD6ukBMG2z02H5OO7eUO/ErsTQCWK41HoDYg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0/INsVn9YLEqcCWH6Gihzs2Y57jfRtM5NqDt8gAF2bJM4wGGy214N/5yw+tGwWbsJ w4FULyNyMpj0YcNwhutB+BzuUI+SvSInQ9kdp8jBQIXEnzcaciJIHgxOWwQ0/OLb5R uqhSGZcGryt0ivirWNy6B1xJdnf115H126lILLG0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Naresh Kamboju , Anders Roxell , Faiz Abbas , Ulf Hansson , Sasha Levin Subject: [PATCH 4.19 004/116] mmc: sdhci-omap: Fix busy detection by enabling MMC_CAP_NEED_RSP_BUSY Date: Wed, 1 Apr 2020 18:16:20 +0200 Message-Id: <20200401161542.978611224@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161542.669484650@linuxfoundation.org> References: <20200401161542.669484650@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ulf Hansson [ Upstream commit 055e04830d4544c57f2a5192a26c9e25915c29c0 ] It has turned out that the sdhci-omap controller requires the R1B response, for commands that has this response associated with them. So, converting from an R1B to an R1 response for a CMD6 for example, leads to problems with the HW busy detection support. Fix this by informing the mmc core about the requirement, via setting the host cap, MMC_CAP_NEED_RSP_BUSY. Reported-by: Naresh Kamboju Reported-by: Anders Roxell Reported-by: Faiz Abbas Cc: Tested-by: Anders Roxell Tested-by: Faiz Abbas Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/sdhci-omap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index e9793d8e83a00..05ade7a2dd243 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -1147,6 +1147,9 @@ static int sdhci_omap_probe(struct platform_device *pdev) host->mmc_host_ops.execute_tuning = sdhci_omap_execute_tuning; host->mmc_host_ops.enable_sdio_irq = sdhci_omap_enable_sdio_irq; + /* R1B responses is required to properly manage HW busy detection. */ + mmc->caps |= MMC_CAP_NEED_RSP_BUSY; + ret = sdhci_setup_host(host); if (ret) goto err_put_sync; -- 2.20.1