Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3628499ybf; Tue, 3 Mar 2020 09:21:46 -0800 (PST) X-Google-Smtp-Source: ADFU+vvPU8NdykcCdER/BtU9RLmB39WIIB+p4pKWs3lG5B66id9BW2ogb8gy5RLHKgQldm3qpRvf X-Received: by 2002:a9d:64ca:: with SMTP id n10mr4172493otl.325.1583256106305; Tue, 03 Mar 2020 09:21:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583256106; cv=none; d=google.com; s=arc-20160816; b=diQtzpK/jlYJfs1WicSM1GaGPY6w++IwsGt8D2iJN9+F+Gy+sOReQuJSJp7UYG4LPE f2o0I+xxrPGbR6/j3sazOTSevPelJisRfrAUymK4ecH2aGSBEO5cXWkE74hkhWFFSwpr un2R2GIDXoG69dy/cW8pyt/L52u/pamVuRjC5p68didRh2CQj6BxH6LJpMkO1juPNqUh DhowmaZRJg0VD9UsmSjp6ooxROt1+SuXVVa65xnsNGgP9mBoKMU6vCV8HlTlpWcx+0Cb KREgk011ccef10E8qJfgwWH3YsC3m65loNsDQi2lSRP/jrlwzBjE+DDlsv2xuZldLJX4 SqeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:subject:cc:to:from :date; bh=AET80Yq9DO8KO8PNhsx9AvCdIwTogRr4vRpqLAds2dQ=; b=SGagrKnc2KpZr9+DEKiU6XVKrhF6pO0tppr9k0x7ThL2+varEcPiUzPaTXHxCBfW0I j1gNovqEmEV8IVbnk6siBCXxGdMzhuCxb+vyWkLc4cxO3ZtDQoDz+Cku3PBdIOpOmiBz dLTb87NF8ytXmB6bmsOGHIjhZ2ofLxOM0jLFhEgDDNP9Flu6Q9kMHmKa6nHGT63AB5yc EhSB1gvddxj0IeSwDbV05wb6dO84/vRGMRtSB2XxwvsfgtVKu+IKCaMXuDi/VHkJDKKF Kz23lu0y2HPtJaBEh/8sw9HRyoRaZVjwKhNLeg5L2LAVtlKuM4OZy0oytLdQVBEVPkfB /03Q== ARC-Authentication-Results: i=1; mx.google.com; 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 69si9435635otv.190.2020.03.03.09.21.34; Tue, 03 Mar 2020 09:21:46 -0800 (PST) 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; 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 S1730606AbgCCRIN (ORCPT + 99 others); Tue, 3 Mar 2020 12:08:13 -0500 Received: from foss.arm.com ([217.140.110.172]:49984 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730600AbgCCRIN (ORCPT ); Tue, 3 Mar 2020 12:08:13 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E899C2F; Tue, 3 Mar 2020 09:08:12 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6C57A3F534; Tue, 3 Mar 2020 09:08:12 -0800 (PST) Date: Tue, 03 Mar 2020 17:08:10 +0000 From: Mark Brown To: Anson Huang Cc: broonie@kernel.org, lgirdwood@gmail.com, Linux-imx@nxp.com, linux-kernel@vger.kernel.org, Mark Brown Subject: Applied "regulator: anatop: Lower error message level for -EPROBE_DEFER" to the regulator tree In-Reply-To: <1583243052-1930-1-git-send-email-Anson.Huang@nxp.com> Message-Id: X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch regulator: anatop: Lower error message level for -EPROBE_DEFER has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git 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 788bfc6eb6912df40a31245566b3e5c99ea7a66a Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Tue, 3 Mar 2020 21:44:12 +0800 Subject: [PATCH] regulator: anatop: Lower error message level for -EPROBE_DEFER devm_regulator_register() could return -EPROBE_DEFER when trying to get init data and NOT all resources are available at that time, for this case, error message is better to be present for debug level ONLY. Signed-off-by: Anson Huang Link: https://lore.kernel.org/r/1583243052-1930-1-git-send-email-Anson.Huang@nxp.com Signed-off-by: Mark Brown --- drivers/regulator/anatop-regulator.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index 754739d004e5..ca92b3de0e9c 100644 --- a/drivers/regulator/anatop-regulator.c +++ b/drivers/regulator/anatop-regulator.c @@ -305,9 +305,13 @@ static int anatop_regulator_probe(struct platform_device *pdev) /* register regulator */ rdev = devm_regulator_register(dev, rdesc, &config); if (IS_ERR(rdev)) { - dev_err(dev, "failed to register %s\n", - rdesc->name); - return PTR_ERR(rdev); + ret = PTR_ERR(rdev); + if (ret == -EPROBE_DEFER) + dev_dbg(dev, "failed to register %s, deferring...\n", + rdesc->name); + else + dev_err(dev, "failed to register %s\n", rdesc->name); + return ret; } platform_set_drvdata(pdev, rdev); -- 2.20.1