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: 53229 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 50DB522B06 for ; Mon, 7 Sep 2015 11:34:04 +0000 (UTC) Received: by wisv5 with SMTP id v5sf25627978wis.0 for ; Mon, 07 Sep 2015 04:34:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=jZd6Tg7xQUaOBfthVHkpsWvFNZoYrGUmtGOuVy7C0z4=; b=bUunouiB5EwGUee5CIVYD0Dz7z/42X/s70D2v5wz1KTJ/HLcE4SiqK/N4R3Us+BlFr +Kd5qg3DWt3tGj7nPaDY7vPmlvvf6CXfTkIfO7eASkVfpbtEP3GEvnHEuC43dePyXN4A YCCb7EgpXbnaTHBO0vpYUuKEYsdont5v2nDKUwCWzkSpCCQiwUk0FyDoM8JvNFMN7WZW rGwJiRkV4l+RFiHzZSDtOC8S+zGWMgOOJYhJNujjUsQg0ote+6P0fjrWNNZVwB+3GLP4 fH6KQtDaxnu5eslohCKxjDrEuveq/VdCApGex8XmyseuPd6F4VCG7k6blf9fX0zgmL8I 845w== X-Gm-Message-State: ALoCoQltg/IToRgXCEB7+QLm5k7TYeS5qaSDcfbkHklz1VaQKJQYdnQsc/MulV0N3LhaIwpm+ZjT X-Received: by 10.152.29.36 with SMTP id g4mr4876674lah.3.1441625643610; Mon, 07 Sep 2015 04:34:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.137 with SMTP id d9ls116349laf.42.gmail; Mon, 07 Sep 2015 04:34:03 -0700 (PDT) X-Received: by 10.112.144.69 with SMTP id sk5mr16640616lbb.6.1441625643334; Mon, 07 Sep 2015 04:34:03 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id an10si10176910lbc.116.2015.09.07.04.34.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Sep 2015 04:34:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lamp12 with SMTP id p12so49192788lam.0 for ; Mon, 07 Sep 2015 04:34:03 -0700 (PDT) X-Received: by 10.152.9.200 with SMTP id c8mr15213601lab.76.1441625643243; Mon, 07 Sep 2015 04:34:03 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp322199lbq; Mon, 7 Sep 2015 04:34:02 -0700 (PDT) X-Received: by 10.66.222.161 with SMTP id qn1mr45555384pac.66.1441625641891; Mon, 07 Sep 2015 04:34:01 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si19683641pas.47.2015.09.07.04.34.01; Mon, 07 Sep 2015 04:34:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751847AbbIGLd5 (ORCPT + 8 others); Mon, 7 Sep 2015 07:33:57 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:33182 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751450AbbIGLdr (ORCPT ); Mon, 7 Sep 2015 07:33:47 -0400 Received: by pacex6 with SMTP id ex6so95167898pac.0 for ; Mon, 07 Sep 2015 04:33:47 -0700 (PDT) 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 Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, ulf.hansson@linaro.org, Vaibhav Hiremath 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> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: vaibhav.hiremath@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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)) {