From patchwork Mon Sep 7 11:31:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 7133851 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CA67DBEEC1 for ; Mon, 7 Sep 2015 11:36:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0836520681 for ; Mon, 7 Sep 2015 11:36:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 32E0B20620 for ; Mon, 7 Sep 2015 11:36:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZYugt-00067c-Pt; Mon, 07 Sep 2015 11:34:27 +0000 Received: from mail-pa0-f47.google.com ([209.85.220.47]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZYugZ-0005sN-Us for linux-arm-kernel@lists.infradead.org; Mon, 07 Sep 2015 11:34:08 +0000 Received: by pacfv12 with SMTP id fv12so97361862pac.2 for ; Mon, 07 Sep 2015 04:33:47 -0700 (PDT) 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:in-reply-to :references; bh=ndyDr0Y3tymR2fnRqpAWfYiFB6di1h3NcmEobPD61zY=; b=X53zi3e85o0iwI/Uf076dw+53zNf6Jk24GvmD5fPEri6pXqgU8Tudh727ZXpYXi4Qt PELF2M6vL8kmA9kTks3aV8L8Yow1imK/5Wx5cZXS3AnCyqcTV7gKpT0tF31hYOGRdEsk gWtflD5VYgmFi6ktO0mEqABS4YsO6hy8K8AQgdpG6NlbR26AC7GZSxUISB1wkfVLOiKQ yAfhSJfuD/wAK79l2xJ+GM7U7KeyRb91MpLbG6v17zQlQxpxfKLy1IhNGMLYqq8ey2jJ Pm/Cwd9d6gZ2/OMfRVg1iKuB1wZXjOHn9jl/snJzh5lgxZ0lLLVlPu7NdXQ/5L48cYq5 jJLA== X-Gm-Message-State: ALoCoQkzX7hdGixx9fcv5fNvuAMImg2MrEZsi18gA9LvUFGeVeBIxXjcmN+m+bSqBcipsa9B7mLo X-Received: by 10.68.100.36 with SMTP id ev4mr44330517pbb.119.1441625627197; Mon, 07 Sep 2015 04:33:47 -0700 (PDT) Received: from localhost.localdomain ([202.62.93.139]) by smtp.gmail.com with ESMTPSA id o3sm11783645pap.37.2015.09.07.04.33.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Sep 2015 04:33:46 -0700 (PDT) From: Vaibhav Hiremath To: linux-mmc@vger.kernel.org Subject: [PATCH-v2 3/3] mmc: sdhci: print notice on -EPROBE_DEFER in sdhci_add_host() fn Date: Mon, 7 Sep 2015 17:01:11 +0530 Message-Id: <1441625471-16315-4-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441625471-16315-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1441625471-16315-1-git-send-email-vaibhav.hiremath@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150907_043408_182277_40DEE10B X-CRM114-Status: GOOD ( 12.69 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, ulf.hansson@linaro.org, linux-kernel@vger.kernel.org, Vaibhav Hiremath , robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds kernel notice/message to sdhci_host_add() fn on -EPROBE_DEFER. Signed-off-by: Vaibhav Hiremath --- drivers/mmc/host/sdhci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 1dbe932..37a5cd5 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3130,8 +3130,11 @@ int sdhci_add_host(struct sdhci_host *host) mmc->caps |= MMC_CAP_NEEDS_POLL; /* If there are external regulators, get them */ - if (mmc_regulator_get_supply(mmc) == -EPROBE_DEFER) + if (mmc_regulator_get_supply(mmc) == -EPROBE_DEFER) { + pr_notice("%s: regulator supply unavailable, deferring probe.\n", + mmc_hostname(mmc)); return -EPROBE_DEFER; + } /* If vqmmc regulator and no 1.8V signalling, then there's no UHS */ if (!IS_ERR(mmc->supply.vqmmc)) {