From patchwork Fri Jun 24 16:24:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 9197883 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 213CB60871 for ; Fri, 24 Jun 2016 16:25:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12B0828495 for ; Fri, 24 Jun 2016 16:25:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06883284A0; Fri, 24 Jun 2016 16:25:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9118E28495 for ; Fri, 24 Jun 2016 16:25:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751321AbcFXQZF (ORCPT ); Fri, 24 Jun 2016 12:25:05 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:37040 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751143AbcFXQZE (ORCPT ); Fri, 24 Jun 2016 12:25:04 -0400 Received: by mail-wm0-f48.google.com with SMTP id a66so32234439wme.0 for ; Fri, 24 Jun 2016 09:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=7w0lCJdFn8Xr9yTXpHQS0FKMvZOTNiuTFP9RLUnm2IE=; b=HEvV2Z4Lp1X4fewqGGqTme1pwcGOcSEfk4Kst3Ozv/zFFTj1XJPo2zwXMKz7vfP0I/ dD13p8UZzTbKHT+ABsk54eFvtx53R9vGNGUki+thku2w9yDcGLRH5Guk9SiPTYStfFW8 HfU2GfN64iWVAYlQz6i7eBuZQ9dVLi3oLW4GI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7w0lCJdFn8Xr9yTXpHQS0FKMvZOTNiuTFP9RLUnm2IE=; b=Hrw8pe6CQCDaSUKsKHA6V+n68ghVRIhxXnfFGcy9EseiRW9CoUJlRZs2jaXUqHkg0Q 370qNu0xjIgblo72JHIHpfZLsWV3TJLR+J2bxyw98o3g4VzMkqUUXzeGrBkjMbpvLjru QWjdU0CX0xbUcyiiH1ITwV8CNWgaZjjcjH6ErqRhwva9NyA43d19zWze8WSes0HFxxZ6 nWvLkQd9IAHPkrSivvewo8AZo5IAZ4uQ4YQIBHASU86eRT8sVb8DqgPB6fAJ4DaZbgzV KhL2UzqQ3N4/E62CJ15FPLX439ZjtdPlATShTx5ipdP5qyZNJ4ER+rilQeutIO/E1OaV M5Zw== X-Gm-Message-State: ALyK8tKuFhHYIqgs4HUruaDLTdb2EGKstG0Ae1qqqDuMMdtMiFgALYWOZeroI7XYlU9qNIMp X-Received: by 10.28.4.7 with SMTP id 7mr7168458wme.77.1466785502271; Fri, 24 Jun 2016 09:25:02 -0700 (PDT) Received: from mms.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id bh4sm5808599wjc.43.2016.06.24.09.25.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jun 2016 09:25:00 -0700 (PDT) From: Georgi Djakov To: ulf.hansson@linaro.org Cc: adrian.hunter@intel.com, iivanov.xz@gmail.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, georgi.djakov@linaro.org Subject: [PATCH] mmc: sdhci-msm: Do not reset the controller if no card in the slot Date: Fri, 24 Jun 2016 19:24:59 +0300 Message-Id: <1466785499-7563-1-git-send-email-georgi.djakov@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The controller does not clear the "reset bit" when it is reset without a card in the slot. Because of this, the following error message is seen while booting with no plugged SD card. mmc1: Reset 0x1 never completed. Add the SDHCI_QUIRK_NO_CARD_NO_RESET quirk to avoid this. Signed-off-by: Ivan T. Ivanov Signed-off-by: Georgi Djakov Tested-by: Bjorn Andersson Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-msm.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index ac5700233e12..c613137ae91e 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -477,6 +477,7 @@ static const struct sdhci_ops sdhci_msm_ops = { static const struct sdhci_pltfm_data sdhci_msm_pdata = { .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION | + SDHCI_QUIRK_NO_CARD_NO_RESET | SDHCI_QUIRK_SINGLE_POWER_WRITE, .ops = &sdhci_msm_ops, };