Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2209839yba; Thu, 25 Apr 2019 12:27:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxksnDtypqxUZ7ff45+BKAinE7ARArIZuyp69ykvix0EN+1HBzluHERhm8GQedjVCxv0/61 X-Received: by 2002:aa7:9095:: with SMTP id i21mr43745015pfa.134.1556220428855; Thu, 25 Apr 2019 12:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556220428; cv=none; d=google.com; s=arc-20160816; b=hVdD9zMFzG507t9QZKH6XNwz2d97aRCGaq16doPoVtqhTHqSqE9HyH6A11eVbFT1i9 /lFwdZ7CSjqspWsXgsV75HZael4ZRpfGb6ZMx+vfG1nDNTApLLssazN5ML4irdhvexkY C2w/toWtb8wuUipTWXZOPucZakZTkWA1QzlYzRu6MzScIyHKUbC02/MRH7DNoGFLrRl9 Zs0PEk5xyrQ8JjT4QGhHWoSGaoZDr934pnWz8tmEp44o4xbL4nSsbinAMY3jg/ULaQYa 3tKz7qfXnsHgrNJ5MgtgeWZ9Sxs14vqw6BEWDWUeXQvmkQ7JNUXcMqkURSsfcxTiHA2x I/2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=0x8Te4hhEI/xHQ81yHY2umN/dm6b1QkiuOwRSKt2718=; b=rzEJMDBZ2zV4miNAnc3k32k24+DlxQr7etH6W1ofMOZOKzAGLbZ0SItBG/cZ//U+Is AxfxRfpHz2LYh3ZZP37AgupnEAxgQRocmEpxDEjiTJo6nT2KpR2vnwBsdo38t0UydO9j VJzLY8gq1ymGfBTm3q5lTHfByW3RMih9q0Ez/bQSG70l/Wj++K/Y2CpLjHgStkJ20Ohj 6UnyQuOvgIuJtebDqW02fRvluoGQX+QgY2k9PNMeREhZSVZKl91UmbFVLrTUcdq4oJqo Mfn6A7ZOM4lJZF5eShygQSmejrhRVixwNdbE1BKTx5NxnJfey5CwjnbcSABGtYH8tZbY myQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=oOf0hcN9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9si12118054pls.343.2019.04.25.12.26.53; Thu, 25 Apr 2019 12:27:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=oOf0hcN9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730366AbfDYTZi (ORCPT + 99 others); Thu, 25 Apr 2019 15:25:38 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:49334 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727508AbfDYTYu (ORCPT ); Thu, 25 Apr 2019 15:24:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=0x8Te4hhEI/xHQ81yHY2umN/dm6b1QkiuOwRSKt2718=; b=oOf0hcN9uTA3 BeYLdeL/lGUAAC1TG1p6qUrCIPWKaveciXZaqxLXLq3UD29X3DrWeMf6yeZAmn+/VztywlC8tSvJ7 0s05k6YMoijbq8esZDt/i6dDF/4MJHxcIDQnJT2tPPcIuNSogWdr/sePDExwMEPNNFktMgCRTLElY Nvq6Y=; Received: from 188.29.164.24.threembb.co.uk ([188.29.164.24] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hJjzD-0004Zf-1h; Thu, 25 Apr 2019 19:24:47 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 5A391441D3C; Thu, 25 Apr 2019 20:24:40 +0100 (BST) From: Mark Brown To: Jorge Ramirez-Ortiz Cc: broonie@kernel.org, jorge.ramirez-ortiz@linaro.org, khasim.mohammed@linaro.org, lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown Subject: Applied "regulator: core: do not report EPROBE_DEFER as error but as debug" to the regulator tree In-Reply-To: <20190417192443.6501-1-jorge.ramirez-ortiz@linaro.org> X-Patchwork-Hint: ignore Message-Id: <20190425192440.5A391441D3C@finisterre.ee.mobilebroadband> Date: Thu, 25 Apr 2019 20:24:40 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch regulator: core: do not report EPROBE_DEFER as error but as debug has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 4d0a83b904f4b2b9b814ad950472b50e7e803716 Mon Sep 17 00:00:00 2001 From: Jorge Ramirez-Ortiz Date: Wed, 17 Apr 2019 21:24:43 +0200 Subject: [PATCH] regulator: core: do not report EPROBE_DEFER as error but as debug Temporary failures to get a regulator (EPROBE_DEFER) should be logged as debug information instead of errors. Signed-off-by: Jorge Ramirez-Ortiz Signed-off-by: Mark Brown --- drivers/regulator/core.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 5a9ebcf7fe7a..08ccabe07fe3 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -4345,8 +4345,6 @@ int regulator_bulk_get(struct device *dev, int num_consumers, consumers[i].supply); if (IS_ERR(consumers[i].consumer)) { ret = PTR_ERR(consumers[i].consumer); - dev_err(dev, "Failed to get supply '%s': %d\n", - consumers[i].supply, ret); consumers[i].consumer = NULL; goto err; } @@ -4355,6 +4353,13 @@ int regulator_bulk_get(struct device *dev, int num_consumers, return 0; err: + if (ret != -EPROBE_DEFER) + dev_err(dev, "Failed to get supply '%s': %d\n", + consumers[i].supply, ret); + else + dev_dbg(dev, "Failed to get supply '%s', deferring\n", + consumers[i].supply); + while (--i >= 0) regulator_put(consumers[i].consumer); -- 2.20.1