Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3284121ybb; Tue, 31 Mar 2020 02:04:37 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtxqs2/9b+VHDB/Fqk4r2OwtXDWv3Ypb48D7w1RC+zEOsPH/Tjg5S9JPyiAoy4EFmY3wNTu X-Received: by 2002:a9d:bf7:: with SMTP id 110mr12842424oth.259.1585645477407; Tue, 31 Mar 2020 02:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585645477; cv=none; d=google.com; s=arc-20160816; b=Nmu06qCtwhbn/q5sDycnaZfNRI/pBwNpjrpG/AUrTmGTw174C/zN8hVTmKgYEP7upJ WvY7sKBzQYtsO85emScytGMwz6hqJNkF+JmYXDygO97+kKypSFWw6XGUlzAZMp1UekJO ztpwxH+BUUGgDXMg08e6oY6x0PLbfchienX0cnd6+RcxYy3hTgTOOvzSMtXDyv48Uzz1 drRzZYplKsauP0GxukUr8IJcCCokpnr4pgUcnz5ThMS0qd9kM2m8oGRFGVyLIPv8MHWZ 4ijokSgqIzSz0mHRPJvgUyzmlBV8bFvy6JP5vMDyLqW3WkOJM5ss3GrzYDxcsVOR9pEh yVpg== 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=k58qjJoeZUyjIb5oOOskgke6tyz48HqQxu55G2cJREg=; b=ydrL0giUhYq2QC3YB+BJ9A0H9dyZKv86VlkyttkDnf1T5gozpf+GNsxb4PvyRSuGKr 5FyZ6klhUGCsX1JTiA0ixYmM2awI6GyX6nYkbk2+7IwzJxXN/7iWR5bCwqKVhlE5CEJ5 9gIYhqay/dd6ClnEVwBukHa/WLqtIebuAgO7nRo30GX2/xlZJOpwclkS07lDLWk/bcm3 XBhB+mETLC+2EtZGjllmzFZlkasARm89LE903/IgfqdEWf6rFKTVw3cq4mZk7HIsiSRo qWbpLUDiCfgBStB3IHq+3UX64xgM44aHSu2dTxW6y8fCscJlDDCdyoNEIWTG5mgTRlQB HO2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dfqhbWAa; 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 b8si7386481oob.73.2020.03.31.02.04.25; Tue, 31 Mar 2020 02:04:37 -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=dfqhbWAa; 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 S1730375AbgCaJCh (ORCPT + 99 others); Tue, 31 Mar 2020 05:02:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:42152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730732AbgCaJCe (ORCPT ); Tue, 31 Mar 2020 05:02:34 -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 E79D0208E0; Tue, 31 Mar 2020 09:02:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645354; bh=OOrvL+hxe4tsrCV6JNg9MTvSFyZDghtmI19y3UsQ144=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dfqhbWAaF9r2X2YbYNtzwphrzJi45GAx6VcyHq7+SLcfUzb6uO6PMoQUeHE3Pf3+O h0XxHYjNWCV1WsR6ZDd+ieBtOoQvNPMXH4PHbwMrhXo5s6KDiZEtLWmGCKe/7Okm+/ iXTS6WX3vLpbTRPdzt1m5fybngU8HqmDO6U3mC78= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bitan Biswas , Peter Geis , Sowjanya Komatineni , Ulf Hansson , Sasha Levin Subject: [PATCH 5.5 005/170] mmc: sdhci-tegra: Fix busy detection by enabling MMC_CAP_NEED_RSP_BUSY Date: Tue, 31 Mar 2020 10:56:59 +0200 Message-Id: <20200331085424.690150019@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@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 d2f8bfa4bff5028bc40ed56b4497c32e05b0178f ] It has turned out that the sdhci-tegra 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: Bitan Biswas Reported-by: Peter Geis Suggested-by: Sowjanya Komatineni Cc: Tested-by: Sowjanya Komatineni Tested-By: Peter Geis Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/sdhci-tegra.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 403ac44a73782..a25c3a4d3f6cb 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -1552,6 +1552,9 @@ static int sdhci_tegra_probe(struct platform_device *pdev) if (tegra_host->soc_data->nvquirks & NVQUIRK_ENABLE_DDR50) host->mmc->caps |= MMC_CAP_1_8V_DDR; + /* R1B responses is required to properly manage HW busy detection. */ + host->mmc->caps |= MMC_CAP_NEED_RSP_BUSY; + tegra_sdhci_parse_dt(host); tegra_host->power_gpio = devm_gpiod_get_optional(&pdev->dev, "power", -- 2.20.1