Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp437573yba; Fri, 26 Apr 2019 02:46:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTmLJpKWm+JdUA+7n7QMGJOjNBMH1Wg+LLAeTzPKQtfvG11YEYt4i/MKGUdBDg1VJ7cwm9 X-Received: by 2002:a63:2b41:: with SMTP id r62mr42711089pgr.403.1556272013021; Fri, 26 Apr 2019 02:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556272013; cv=none; d=google.com; s=arc-20160816; b=kZRhVB6ja6vD3ArD2BF8ZCNWcGcZn95KkRWsRu9rPZKRyuCd5cNgvn3IzL3goSrTZQ GTVkYrns+34SNLfPiTS9KqLEWa0AYoZMlNdzinzT3Cm0lXRbXUEYVOv+M11XTtXmMQMb HNf5RqvU6Kqf7w1n75JRqzzryDInpU9v7QEzntlj9aeXgTcL7EE/HrDyVjTadFWzgMPe oldYAUaRa/wdvhfiPXFBL4W9/woAljT82nQQkkkzsulc3F6UD7zPj4/UqsPvrdLGqG7G kZ4fMR2gfydoJMYFcy6JQaeVXtK93Dc2zaGWbpClNloo7m8t9tkFKU/+D80TlUM/iZ5X 3PvA== 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=xyrB61ZcsA7w8QQMNTNsT4INetcMTolXtVi1jB7Rq/8=; b=tCnNvYfbfhaev8m7evJbgz273SgRELQhY8LD9/U2eJfPtaeDsMdkzemApvIM/fhK7o Cmu7u//qhI4tdtV10XDnu7VzIS0Pxd8vfHE66YOwBTAGRkMUTyPweyn2jJApVI5vgHcw uTi5sGjc23mY4KOk0JCPkk9N96Y2eNxkkNTnLuXe+e2Zn4oH0jFkwsjxuznjzAu5Go30 fUWXwh0N0nPYw4SgZIZ2YfOYaAEI2XMkhEL7r0pFNW8Woeszh01cluHeza+9BXwhF42H rIEgEQx8ANANgqjgHNhV/qXAjnBStXstyxo+v4H80jRJV+3OpQ6h9POpeW8hkwnBQ4di C5Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=GtA0Bl5V; 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 30si11988395plc.8.2019.04.26.02.46.38; Fri, 26 Apr 2019 02:46:53 -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=GtA0Bl5V; 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 S1726366AbfDZJnz (ORCPT + 99 others); Fri, 26 Apr 2019 05:43:55 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:45610 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbfDZJk0 (ORCPT ); Fri, 26 Apr 2019 05:40:26 -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=xyrB61ZcsA7w8QQMNTNsT4INetcMTolXtVi1jB7Rq/8=; b=GtA0Bl5VRBLR qAFBD0HucvTP/8Av/wiTwVIOkVhhdGcAeQXVO3qH6kavXkebELIThWJh3LnDIBMqVOfICYUY7ENXN /VHlARMkmPGuZ+0tuIvAnjFoPLpEPpjb/WZCmEWDAZteyLHKTOE5on2oXgGA02+3q5uWEyvQhgeiu mQFLc=; Received: from [37.205.61.202] (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 1hJxL7-0003Hx-C8; Fri, 26 Apr 2019 09:40:17 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 80440441D3E; Fri, 26 Apr 2019 10:40:15 +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: <20190426094015.80440441D3E@finisterre.ee.mobilebroadband> Date: Fri, 26 Apr 2019 10:40:15 +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 b9816363c0e82f4cd8f9be8153fbc5b81b22911c 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