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: 9197881 X-Patchwork-Delegate: agross@codeaurora.org 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 BAA0460871 for ; Fri, 24 Jun 2016 16:25:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A992028495 for ; Fri, 24 Jun 2016 16:25:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CCE0284A0; Fri, 24 Jun 2016 16:25:32 +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 2A54328495 for ; Fri, 24 Jun 2016 16:25:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751460AbcFXQZF (ORCPT ); Fri, 24 Jun 2016 12:25:05 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:33530 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081AbcFXQZE (ORCPT ); Fri, 24 Jun 2016 12:25:04 -0400 Received: by mail-wm0-f45.google.com with SMTP id r190so10145957wmr.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=Me0vkq2Rkz1AEvx8NXJmaZkWweEQHKdfwekpFSCHwQGKsW6VUy6e5a30B/xIFMzTEB 6E8hE6HPVTSKWk2y6jDaLquh2jCNpEpbY9Hgn+OmbUmfJTmSl0S/ZcF7W0a3W8zAxkU4 QSYUucEc9f/y4zjcj3VgRQ2VeGBPZy5mF8QU3S8km/2ifzYUus2kPDcARlhYVVdbXT2d 1Sk2cFI0Vzso77wWpJiFpiesajQk1Z6pvzWCXihWnbb2B0NgfIryDKaty4KC1W/U7Fge 8ddjY8dkW5SHZwt5yb3bGH6L3/xxF1EAuXhvQzSewV00QlyTxDnuiVZ17NIgIC5VzbKr tbcQ== X-Gm-Message-State: ALyK8tLAyoerruVqqpX79inX8ahpCyzhZCzT94BVapD09IkJSrmOdF0IeqvqTMkMP5akmbxm 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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-arm-msm" 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, };