From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF0B1C0044D for ; Mon, 16 Mar 2020 11:32:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9734A2051A for ; Mon, 16 Mar 2020 11:32:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584358320; bh=2Txh1FJhl8WzjeYgsZPyZl6u1D2GIiKHpKaMOTY9gQ0=; h=Subject:To:Cc:From:Date:List-ID:From; b=c5n9SFl87bhH1EcB2wIEJ4ajp6PJQMc3EmvzuaEzq+95ZEynC4Y1BSM1EcaeFdJ6S komJ6cHnsF3TLvaGBEezb6C+3fKLEeBwTamHgFpK74/7SZFD+hC8Wf/sUWmeeDo1yP los5Y5bcfsPj6MuM8Dr0kF026jpYQsIMvrPtRpOk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730817AbgCPLcA (ORCPT ); Mon, 16 Mar 2020 07:32:00 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:42597 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730801AbgCPLcA (ORCPT ); Mon, 16 Mar 2020 07:32:00 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 07AEB5E8; Mon, 16 Mar 2020 07:31:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 16 Mar 2020 07:31:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=KdXOlz 0GiwFnKtYxt1V3YtchXqT9qMRV7YLjNoXpn4U=; b=kFA0UUKYhQxZD6HH+Zx3aY M+maKS8QMdspgqZKmxXGBX9QoScnPD6UoH9u5Y9pVl71jALCYHF/HeO3QfeMpRnc eJATjPfTnaFvADNGw2jqwvGSybP30d30wIdFyGff7IwG2fn+SqnmxO+u0WxtSQQb xzF6xeBOzbtOSWnsjhcdE33iNCU+bfSzmPceDt8U5dnJWL/F99OdJllW1/zFTRN2 8mDaCSRmAjToy4f2XWPpHaMCxBqc3M34nUROjWVWOk1YHjLFjRJgnYXpZb08PR/h tcmm9P6pkN9pYffIaX45nRp2P/Yax0SJPWIGtifi8WQxKS1Tl+zLMwm92QtN085Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeffedgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecukfhppeekfedrkeeirdekledruddtjeenucevlhhushhtvghrufhiiigvpeegne curfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 50E073280059; Mon, 16 Mar 2020 07:31:58 -0400 (EDT) Subject: FAILED: patch "[PATCH] mmc: sdhci-omap: Fix busy detection by enabling" failed to apply to 4.19-stable tree To: ulf.hansson@linaro.org, anders.roxell@linaro.org, faiz_abbas@ti.com, naresh.kamboju@linaro.org, stable@vger.kernel.org Cc: From: Date: Mon, 16 Mar 2020 12:31:48 +0100 Message-ID: <158435830849168@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.19-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 055e04830d4544c57f2a5192a26c9e25915c29c0 Mon Sep 17 00:00:00 2001 From: Ulf Hansson Date: Tue, 10 Mar 2020 15:05:02 +0100 Subject: [PATCH] mmc: sdhci-omap: Fix busy detection by enabling MMC_CAP_NEED_RSP_BUSY 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 diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index 882053151a47..c4978177ef88 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -1192,6 +1192,9 @@ static int sdhci_omap_probe(struct platform_device *pdev) if (of_find_property(dev->of_node, "dmas", NULL)) sdhci_switch_external_dma(host, true); + /* 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;