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 54F25C18E5B for ; Mon, 16 Mar 2020 11:31:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B3A82051A for ; Mon, 16 Mar 2020 11:31:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584358319; bh=ZeUq9sa9izfZCeyaAS7l6cmKT9SDm8udhUEBG3njPbc=; h=Subject:To:Cc:From:Date:List-ID:From; b=zKDS1x5MhQ9yh/GJupdburXSXRb4/d5rJz/iAV3BV46NGDeH9lfVtgENY7gxCuJkv 3NxeXah85gSnTEndvBj7Fm/7aInV77bXe1QPocxTyZ48gf0Go6mjdcwFMNmvTvcSUj BXe5Va1kyExY/f0qh6DzaE6osOzglfBF95XUN8D0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730815AbgCPLb6 (ORCPT ); Mon, 16 Mar 2020 07:31:58 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:60675 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730801AbgCPLb6 (ORCPT ); Mon, 16 Mar 2020 07:31:58 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 8A20980F; Mon, 16 Mar 2020 07:31:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 16 Mar 2020 07:31:57 -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=QWPOvs 8Gtxu5qhuZtLIWZ9sVYgX27VyxUA4YTzkfxVU=; b=LKa9tAs8G8AuCK40XQgH1t 45PTFsyA118R8Ha/e9N8IR0IOVXzNiPVYkYHsZ6bUnlJ+B36xRK+Ub/5lPq5SwYA z/IaIEA1QEoO9+9lWHw63tmQLjlXJQhuBYt/sYTSMd3ygFq1WcooDXWFFGL0TtiD SrEEuL6jWW04+M8wv5auGWISGb0no3qi/VuwXReuc6TCj547T0ozb18yD/AALzAJ qNDou5/7z97Tqf+JOVjLA9Hic8n6sWIRZP6o1P1qoumdZXVkJX0J5TyUHu/HTwr6 ltQ/EEBEnrftO6adFBb6Wh++yvtYVlko/WqIlZimoLcG3K+WiNN17RVD6nblM8mg == 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 C3A7B30618C1; Mon, 16 Mar 2020 07:31:56 -0400 (EDT) Subject: FAILED: patch "[PATCH] mmc: sdhci-omap: Fix busy detection by enabling" failed to apply to 5.4-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:47 +0100 Message-ID: <158435830716852@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 5.4-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;